Skip to content

Commit a61d663

Browse files
Addressing Ruben's feedback
1 parent aa24b48 commit a61d663

File tree

1 file changed

+5
-5
lines changed
  • aws_lambda_powertools/utilities/parser

1 file changed

+5
-5
lines changed

aws_lambda_powertools/utilities/parser/parser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ def handler(event: Order, context: LambdaContext):
173173
return envelope().parse(data=event, model=model)
174174
except AttributeError as exc:
175175
raise InvalidEnvelopeError(
176-
f"Error: {str(exc)}. Please ensure that both the Input model and Envelope inherit from BaseModel,\n"
177-
"And your payload adheres to the specified Input model structure.\n"
178-
f"Envelope={envelope} \nModel={model}",
176+
f"Error: {str(exc)}. Please ensure that both the Input model and the Envelope inherits from BaseModel,\n" # noqa E501
177+
"and your payload adheres to the specified Input model structure.\n"
178+
f"Envelope={envelope}\nModel={model}",
179179
)
180180

181181
try:
@@ -187,7 +187,7 @@ def handler(event: Order, context: LambdaContext):
187187
return model.parse_obj(event)
188188
except AttributeError as exc:
189189
raise InvalidModelTypeError(
190-
f"Error: {str(exc)}. Please ensure the Input model inherit from BaseModel,\n"
191-
"And your payload adheres to the specified Input model structure.\n"
190+
f"Error: {str(exc)}. Please ensure the Input model inherits from BaseModel,\n"
191+
"and your payload adheres to the specified Input model structure.\n"
192192
f"Model={model}",
193193
)

0 commit comments

Comments
 (0)