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

[cli/engine/command:generate_output] handle TypeErrors when parsing StopIteration arguments

parent fd62a08c
......@@ -181,7 +181,7 @@ class Command(object):
if len(exc.args):
self.return_code = int(exc.args[0])
except ValueError:
except (TypeError, ValueError):
self.return_code = 127
except SystemExit, exc:
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