We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0254b0e commit f8372d5Copy full SHA for f8372d5
1 file changed
basescript/basescript.py
@@ -72,7 +72,9 @@ def start(self):
72
# invoke the appropriate sub-command as requested from command-line
73
try:
74
self.args.func()
75
- self.log.debug("exited_successfully")
+ except SystemExit as e:
76
+ if e.code != 0:
77
+ raise
78
except KeyboardInterrupt:
79
self.log.warning("exited via keyboard interrupt")
80
except Exception as e:
@@ -82,6 +84,8 @@ def start(self):
82
84
self._flush_metrics_q.put(None, block=True)
83
85
self._flush_metrics_q.put(None, block=True, timeout=1)
86
87
+ self.log.debug("exited_successfully")
88
+
89
@property
90
def name(self):
91
return ".".join([x for x in (sys.argv[0].split(".")[0], self.args.name) if x])
0 commit comments