Fix minor things in management API

This commit is contained in:
Tulir Asokan 2018-11-11 16:06:06 +02:00
parent fd5672b3dd
commit b52766ab1e
2 changed files with 5 additions and 3 deletions

View file

@ -39,7 +39,6 @@ async def error(request: web.Request, handler: Handler) -> web.Response:
try:
return await handler(request)
except web.HTTPException as ex:
print(ex)
if ex.status_code == 404:
return resp.path_not_found
elif ex.status_code == 405: