Fix: timmy exits 0 on unhandled exceptions
Change-Id: I734b3ba22c7e9ddfd3f8621cd3925a87f5130cf4
This commit is contained in:
parent
d2786d8aae
commit
5db66569ad
@ -16,3 +16,4 @@ Exit Codes
|
|||||||
* `110` - unable to create a directory.
|
* `110` - unable to create a directory.
|
||||||
* `111` - ip address must be defined for Node instance.
|
* `111` - ip address must be defined for Node instance.
|
||||||
* `112` - one of the two parameters **fuel_user** or **fuel_pass** specified without the other.
|
* `112` - one of the two parameters **fuel_user** or **fuel_pass** specified without the other.
|
||||||
|
* `113` - unhandled Python exception occured in main process.
|
||||||
|
@ -62,6 +62,7 @@ def interrupt_wrapper(f):
|
|||||||
if not k.startswith('__') and k != 'message':
|
if not k.startswith('__') and k != 'message':
|
||||||
v = getattr(e, k)
|
v = getattr(e, k)
|
||||||
logger.debug('Error details: %s = %s' % (k, v))
|
logger.debug('Error details: %s = %s' % (k, v))
|
||||||
|
sys.exit(113)
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user