Fix: timmy exits 0 on unhandled exceptions

Change-Id: I734b3ba22c7e9ddfd3f8621cd3925a87f5130cf4
This commit is contained in:
Oleksandr Liemieshko 2016-11-02 13:55:03 -07:00
parent d2786d8aae
commit 5db66569ad
2 changed files with 2 additions and 0 deletions

View File

@ -16,3 +16,4 @@ Exit Codes
* `110` - unable to create a directory.
* `111` - ip address must be defined for Node instance.
* `112` - one of the two parameters **fuel_user** or **fuel_pass** specified without the other.
* `113` - unhandled Python exception occured in main process.

View File

@ -62,6 +62,7 @@ def interrupt_wrapper(f):
if not k.startswith('__') and k != 'message':
v = getattr(e, k)
logger.debug('Error details: %s = %s' % (k, v))
sys.exit(113)
return wrapper