Skip to content

Commit

Permalink
Merge pull request #34 from Behoston/fix_missing_return
Browse files Browse the repository at this point in the history
Add missing return statement to ResourceList.
  • Loading branch information
jgoclawski committed Nov 7, 2018
2 parents a965454 + 67f7bcb commit 3f40aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_jsonapi/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def post(self, *args, **kwargs):
return response.JsonApiErrorResponse.from_marshmallow_errors(e.messages)
else:
if errors:
response.JsonApiErrorResponse.from_marshmallow_errors(errors)
return response.JsonApiErrorResponse.from_marshmallow_errors(errors)
else:
return self.prepare_response(data)

Expand Down

0 comments on commit 3f40aa6

Please sign in to comment.