Revert "Don't crash CLI on exceptions (#2066)" (#2078)

This reverts commit 147834e99c.
This commit is contained in:
Damian Stewart 2022-12-19 20:56:04 +01:00 committed by GitHub
parent 7d8d4bcafb
commit f69fc68e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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