Bläddra i källkod

fix exception handle error

Guénaël Muller 6 år sedan
förälder
incheckning
75d62e568c
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      backend/tracim_backend/__init__.py

+ 1 - 1
backend/tracim_backend/__init__.py Visa fil

104
     context.handle_exception(InsufficientUserProfile, HTTPStatus.FORBIDDEN)
104
     context.handle_exception(InsufficientUserProfile, HTTPStatus.FORBIDDEN)
105
     # Internal server error
105
     # Internal server error
106
     context.handle_exception(OperationalError, HTTPStatus.INTERNAL_SERVER_ERROR)
106
     context.handle_exception(OperationalError, HTTPStatus.INTERNAL_SERVER_ERROR)
107
-    # context.handle_exception(Exception, HTTPStatus.INTERNAL_SERVER_ERROR)
107
+    context.handle_exception(Exception, HTTPStatus.INTERNAL_SERVER_ERROR)
108
 
108
 
109
     # Add controllers
109
     # Add controllers
110
     session_controller = SessionController()
110
     session_controller = SessionController()