Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from aiohttp.web import (
middleware,
HTTPException,
HTTPNotImplemented,
HTTPUnauthorized,
HTTPNotFound,
Expand All @@ -27,6 +28,8 @@ async def aiohttp_error_middleware(request, handler):
raise HTTPUnauthorized()
except KeyError:
raise HTTPNotFound()
except HTTPException:
raise
except Exception:
traceback.print_exc()
raise HTTPInternalServerError()