Skip to content

Commit

Permalink
Merge pull request #158 from maicol07/patch-1
Browse files Browse the repository at this point in the history
Fix status code not being a string
  • Loading branch information
thomaxxl authored Jul 7, 2024
2 parents 1b8e8cf + e69def2 commit 5de6f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safrs/safrs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,6 @@ def method_wrapper(*args, **kwargs):

safrs.DB.session.rollback()
errors = dict(title=title, detail=detail, code=api_code)
abort(status_code, errors=[errors])
abort(str(status_code), errors=[errors])

return method_wrapper

0 comments on commit 5de6f2f

Please sign in to comment.