Skip to content

Commit fc3d9d1

Browse files
committed
Handle KeyboardInterrupt (Control-C) gracefully
1 parent b6ad46c commit fc3d9d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

remarshal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ def remarshal(input, output, input_format, output_format, wrap=None,
169169
def main():
170170
try:
171171
run(sys.argv)
172+
except KeyboardInterrupt as e:
173+
pass
172174
except ValueError as e:
173175
print('Error: {0}'.format(e), file=sys.stderr)
174176
sys.exit(1)

0 commit comments

Comments
 (0)