Commit fd62a08c authored by S. Zeid's avatar S. Zeid

[cli/engine/command:generate_output] apparently SystemExit.code can be a non-number type

parent d29aed58
......@@ -184,7 +184,10 @@ class Command(object):
except ValueError:
self.return_code = 127
except SystemExit, exc:
self.return_code = exc.code
self.return_code = int(exc.code)
except (TypeError, ValueError):
self.return_code = 127
except Exception, exc:
tb = traceback.format_exc()
yield output.traceback(tb)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment