From 37e030651796ffc4691fa259d308c135d226cfe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 3 Apr 2019 15:49:40 +0400 Subject: [PATCH] :memo: Update default error response in SQL tutorial --- docs/src/sql_databases/tutorial001.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/sql_databases/tutorial001.py b/docs/src/sql_databases/tutorial001.py index cca7a864c..8958a3c0c 100644 --- a/docs/src/sql_databases/tutorial001.py +++ b/docs/src/sql_databases/tutorial001.py @@ -67,7 +67,7 @@ def read_user(user_id: int, db: Session = Depends(get_db)): @app.middleware("http") async def db_session_middleware(request: Request, call_next): - response = Response('', status_code=500) + response = Response("Internal server error", status_code=500) try: request.state.db = SessionLocal() response = await call_next(request)