Skip to content

Commit

Permalink
Merge pull request #159 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 5de6f2f + e343eb7 commit c388607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions safrs/safrs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def method_wrapper(*args, **kwargs):
detail = getattr(safrs_exception, "detail", title)

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

return method_wrapper

0 comments on commit c388607

Please sign in to comment.