Fixed bad error handling that broke the queue

This commit is contained in:
DeepBeepMeep 2025-04-01 22:25:08 +02:00
parent 3246d8cf4d
commit 19641e423c

View File

@ -1870,9 +1870,9 @@ def process_tasks(state, progress=gr.Progress()):
try:
ok = False
status = next(iterator, "#")
ok = True
if status == "#":
break
ok = True
except Exception as e:
_ , exc_value, exc_traceback = sys.exc_info()
raise exc_value.with_traceback(exc_traceback)