diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-06-05 15:20:32 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2013-06-05 15:20:32 -0400 |
commit | f7a68f90a512806be7b1277258a65f49ece0624a (patch) | |
tree | 478dff03ab9b033d8766720563b9cfd103b18f21 /ipsutils | |
parent | 4855e0182b6303ace9c1ba1410a2354ef44be1ea (diff) | |
download | ipsutils-f7a68f90a512806be7b1277258a65f49ece0624a.tar.gz |
Do not exit if return value is None
Diffstat (limited to 'ipsutils')
-rw-r--r-- | ipsutils/task.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ipsutils/task.py b/ipsutils/task.py index 72f992a..9ae4d7e 100644 --- a/ipsutils/task.py +++ b/ipsutils/task.py @@ -39,11 +39,12 @@ class Controller(object): status = stack_entry.run() if type(status) == type(True): if not status: - print("Internal error: {0:d}".format(status)) + print("Internal error: {}".format(status)) exit(status) else: - if status is not 0: - print("exit: {0:d}".format(status)) + if status is not 0 \ + and status is not None: + print("exit: {}".format(status)) exit(status) class Task(object): |