Skip to content

Commit 8f7e058

Browse files
committed
global Exception handling
1 parent eb13ae2 commit 8f7e058

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ee/cli/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def main():
9494
# Default Cement signals are SIGINT and SIGTERM, exit 0 (non-error)
9595
code = 0
9696
print(e)
97+
except Exception as e:
98+
code = 1
99+
print(e)
97100
finally:
98101
# Print an exception (if it occurred) and --debug was passed
99102
if app.debug:

0 commit comments

Comments
 (0)