From: manlix Date: Sun, 9 Aug 2020 11:10:33 +0000 (+0300) Subject: 🔊 Fix empty log message in docs example about raised exceptions (#1815) X-Git-Tag: 0.61.0~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0752c7242dfc86344a9d1acab48b9a2c2209817c;p=thirdparty%2Ffastapi%2Ffastapi.git 🔊 Fix empty log message in docs example about raised exceptions (#1815) --- diff --git a/docs_src/handling_errors/tutorial006.py b/docs_src/handling_errors/tutorial006.py index 8cabc9c24b..e05160d7e1 100644 --- a/docs_src/handling_errors/tutorial006.py +++ b/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)