diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-31 19:01:53 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-23 12:40:31 +0000 |
commit | 12171ca9612cb36024b7f524c08750fdc57b3a96 (patch) | |
tree | 32bef0474afededafbe0ca7a89ec96ccf0d17138 /modules/errors.py | |
parent | 56236dfd3fde4476217d92cc6767fa3a88c829e4 (diff) | |
download | stable-diffusion-webui-gfx803-12171ca9612cb36024b7f524c08750fdc57b3a96.tar.gz stable-diffusion-webui-gfx803-12171ca9612cb36024b7f524c08750fdc57b3a96.tar.bz2 stable-diffusion-webui-gfx803-12171ca9612cb36024b7f524c08750fdc57b3a96.zip |
fix memory leak when generation fails
Diffstat (limited to 'modules/errors.py')
-rw-r--r-- | modules/errors.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/errors.py b/modules/errors.py index 5271a9fe..dffabe45 100644 --- a/modules/errors.py +++ b/modules/errors.py @@ -14,7 +14,8 @@ def record_exception(): if exception_records and exception_records[-1] == e:
return
- exception_records.append((e, tb))
+ from modules import sysinfo
+ exception_records.append(sysinfo.format_exception(e, tb))
if len(exception_records) > 5:
exception_records.pop(0)
|