소스 검색

add Exception to managed exception in hapic

Bastien Sevajol 6 년 전
부모
커밋
5e1ce6078a
No account linked to committer's email
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      tracim/__init__.py

+ 1 - 0
tracim/__init__.py 파일 보기

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