aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-04-29 17:28:18 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-04-29 17:28:30 +0000
commit90e465982270b85812c94961696b7ba4d2c4d38c (patch)
tree266f561224787e5eb4707f633a46aab0bb1a1dee /modules/api
parentf9253cee660a0c14b8e9e429158ef84fba3968a2 (diff)
downloadstable-diffusion-webui-gfx803-90e465982270b85812c94961696b7ba4d2c4d38c.tar.gz
stable-diffusion-webui-gfx803-90e465982270b85812c94961696b7ba4d2c4d38c.tar.bz2
stable-diffusion-webui-gfx803-90e465982270b85812c94961696b7ba4d2c4d38c.zip
bump gradio to 3.28.1
Diffstat (limited to 'modules/api')
-rw-r--r--modules/api/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 9ffcbd5f..cdbdce32 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -130,8 +130,8 @@ def api_middleware(app: FastAPI):
"body": vars(e).get('body', ''),
"errors": str(e),
}
- print(f"API error: {request.method}: {request.url} {err}")
if not isinstance(e, HTTPException): # do not print backtrace on known httpexceptions
+ print(f"API error: {request.method}: {request.url} {err}")
if rich_available:
console.print_exception(show_locals=True, max_frames=2, extra_lines=1, suppress=[anyio, starlette], word_wrap=False, width=min([console.width, 200]))
else: