Change Exit.__init__ params order to keep backward compatibility
This commit is contained in:
parent
bbd1cbb0b3
commit
d32f2c5c14
|
@ -49,7 +49,7 @@ class Failed(OutcomeException):
|
||||||
class Exit(KeyboardInterrupt):
|
class Exit(KeyboardInterrupt):
|
||||||
""" raised for immediate program exits (no tracebacks/summaries)"""
|
""" raised for immediate program exits (no tracebacks/summaries)"""
|
||||||
|
|
||||||
def __init__(self, returncode=None, msg="unknown reason"):
|
def __init__(self, msg="unknown reason", returncode=None):
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
self.returncode = returncode
|
self.returncode = returncode
|
||||||
KeyboardInterrupt.__init__(self, msg)
|
KeyboardInterrupt.__init__(self, msg)
|
||||||
|
|
Loading…
Reference in New Issue