Browse Source

fix exception handle error

Guénaël Muller 6 years ago
parent
commit
75d62e568c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/tracim_backend/__init__.py

+ 1 - 1
backend/tracim_backend/__init__.py View File

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