|
@@ -73,7 +73,6 @@ async def exception_handler(request: Request, exception: Exception):
|
|
|
|
|
|
@app.exception_handler(Exception)
|
|
@app.exception_handler(Exception)
|
|
async def exception_handler(request: Request, exception: Exception):
|
|
async def exception_handler(request: Request, exception: Exception):
|
|
- globals.log.exception(f'unexpected exception for {request.url}', exc_info=exception)
|
|
|
|
with Client(page('')) as client:
|
|
with Client(page('')) as client:
|
|
error_content(500, exception)
|
|
error_content(500, exception)
|
|
return client.build_response(request, 500)
|
|
return client.build_response(request, 500)
|