🔊 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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)