Browse Source

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

pull/1860/head
manlix 5 years ago
committed by GitHub
parent
commit
0752c7242d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs_src/handling_errors/tutorial006.py

2
docs_src/handling_errors/tutorial006.py

@ -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…
Cancel
Save