File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
aws_lambda_powertools/utilities/parser Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,9 @@ def handler(event: Order, context: LambdaContext):
173
173
return envelope ().parse (data = event , model = model )
174
174
except AttributeError as exc :
175
175
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 } \n Model={ 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 } \n Model={ model } " ,
179
179
)
180
180
181
181
try :
@@ -187,7 +187,7 @@ def handler(event: Order, context: LambdaContext):
187
187
return model .parse_obj (event )
188
188
except AttributeError as exc :
189
189
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 "
192
192
f"Model={ model } " ,
193
193
)
You can’t perform that action at this time.
0 commit comments