aboutsummaryrefslogtreecommitdiff
path: root/ipsutils/task.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipsutils/task.py')
-rw-r--r--ipsutils/task.py7
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):