Don't crash if a VAE file fails to load

This commit is contained in:
cmdr2
2022-11-18 13:10:56 +05:30
parent 6756fb4fe7
commit 025d4df774
3 changed files with 20 additions and 10 deletions

View File

@ -436,7 +436,7 @@ def stop_render_thread(device):
try:
device_manager.validate_device_id(device, log_prefix='stop_render_thread')
except:
print(traceback.format_exec())
print(traceback.format_exc())
return False
if not manager_lock.acquire(blocking=True, timeout=LOCK_TIMEOUT): raise Exception('stop_render_thread' + ERR_LOCK_FAILED)