Parcourir la source

add Exception to managed exception in hapic

Bastien Sevajol il y a 6 ans
Parent
révision
5e1ce6078a
Aucun compte lié à l'adresse email de l'auteur
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      tracim/__init__.py

+ 1 - 0
tracim/__init__.py Voir le fichier

@@ -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)