Skip to content

Commit

Permalink
stop execution of CLI functions after yielding exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Jul 16, 2014
1 parent 0b8df3c commit d863add
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/blockwart/cmdline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def main(*args):
for line in output:
if isinstance(line, int):
return_code = line
break
else:
print(line.encode('utf-8'))

Expand Down

0 comments on commit d863add

Please sign in to comment.