mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-12 01:31:03 -04:00
🔊 Fix empty log message in docs example about raised exceptions (#1815)
This commit is contained in:
@@ -11,7 +11,7 @@ app = FastAPI()
|
||||
|
||||
@app.exception_handler(StarletteHTTPException)
|
||||
async def custom_http_exception_handler(request, exc):
|
||||
print(f"OMG! An HTTP error!: {exc}")
|
||||
print(f"OMG! An HTTP error!: {repr(exc)}")
|
||||
return await http_exception_handler(request, exc)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user