Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
add Exception to managed exception in hapic
Browse files Browse the repository at this point in the history
  • Loading branch information
buxx committed Jun 1, 2018
1 parent 9551d61 commit 5e1ce60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tracim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def main(global_config, **settings):
hapic.set_context(context)
context.handle_exception(NotFound, 404)
context.handle_exception(OperationalError, 500)
context.handle_exception(Exception, 500)
# Add controllers
session_api = SessionController()
configurator.include(session_api.bind, route_prefix=BASE_API_V2)
Expand Down

0 comments on commit 5e1ce60

Please sign in to comment.