mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-21 09:25:25 -04:00
🔊 Fix empty log message in docs example about raised exceptions (#1815)
This commit is contained in:
1 parent
be855c696b
commit
0752c7242d
1 file changed
+1
-1
@@ -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