Browse Source

add Exception to managed exception in hapic

Bastien Sevajol 6 years ago
parent
commit
5e1ce6078a
No account linked to committer's email
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tracim/__init__.py

+ 1 - 0
tracim/__init__.py View File

@@ -58,6 +58,7 @@ def main(global_config, **settings):
58 58
     hapic.set_context(context)
59 59
     context.handle_exception(NotFound, 404)
60 60
     context.handle_exception(OperationalError, 500)
61
+    context.handle_exception(Exception, 500)
61 62
     # Add controllers
62 63
     session_api = SessionController()
63 64
     configurator.include(session_api.bind, route_prefix=BASE_API_V2)