🔊 Fix empty log message in docs example about raised exceptions (#1815)

This commit is contained in:
manlix
2020-08-09 14:10:33 +03:00
committed by GitHub
parent be855c696b
commit 0752c7242d

View File

@@ -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)