mirror of https://github.com/tiangolo/fastapi.git
🔊 Fix empty log message in docs example about raised exceptions (#1815)
This commit is contained in:
parent
be855c696b
commit
0752c7242d
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue