Skip to content
Permalink
Browse files

[#17] HTTPException handler가 유의미한 내용의 response를 하도록 개선

  • Loading branch information...
JoMingyu committed Mar 12, 2019
1 parent 83adab1 commit a0421c0a0d00988f11f9bdb28c91daa3d9e03b94
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/hooks/error.py
@@ -11,7 +11,9 @@ def schematics_baseerror_handler(e: BaseError):


def http_exception_handler(e: HTTPException):
return '', e.code
return jsonify({
'msg': e.description
}), e.code


def broad_exception_handler(e: Exception):

0 comments on commit a0421c0

Please sign in to comment.
You can’t perform that action at this time.