Skip to content

Commit 4b208ce

Browse files
committed
fix QuantifyingException handling issue
1 parent d70e7f2 commit 4b208ce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/shared.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212

1313
class QuantifyingException(Exception):
14-
def __init__(self, message, exit_code):
15-
super().__init__(message)
16-
self.exit_code = exit_code
14+
def __init__(self, message, exit_code=None):
15+
self.exit_code = exit_code if exit_code else 1
16+
self.message = message
17+
super().__init__(self.message)
1718

1819

1920
def setup(current_file):

0 commit comments

Comments
 (0)