Skip to content

Commit

Permalink
[models] Fix regression introduced in #547
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and naoyak committed Nov 16, 2020
1 parent 2f0f9e2 commit d350a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knowledge_repo/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __call__(self, *args, **kwargs):
errorlog = ErrorLog.from_exception(e)
db_session.add(errorlog)
db_session.commit()
raise_with_traceback(e)
raise e.with_traceback()
finally:
# Extract object id and type after response generated (if requested) to ensure
# most recent data is collected
Expand Down

0 comments on commit d350a5c

Please sign in to comment.