Don't crash CLI on exceptions (#2066)

This commit is contained in:
Damian Stewart
2022-12-18 16:28:47 +01:00
committed by GitHub
parent f41da11d66
commit 147834e99c

View File

@ -545,7 +545,7 @@ class Generate:
print('**Interrupted** Partial results will be returned.')
else:
raise KeyboardInterrupt
except RuntimeError as e:
except (RuntimeError, Exception) as e:
print(traceback.format_exc(), file=sys.stderr)
print('>> Could not generate image.')