This website works better with JavaScript.
Home
Help
Register
Sign In
jim
/
itm-decode
Watch
0
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Exit cleanly on keyboard interrupt
master
Jim Paris
3 years ago
parent
ae4b0081c8
commit
ed0f7f47f9
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
itm-decode.py
+ 5
- 1
itm-decode.py
View File
@@ -162,7 +162,11 @@ def main(argv):
yield None
else:
yield data[0]
ITMParser(input_stream()).process()
try:
ITMParser(input_stream()).process()
except KeyboardInterrupt:
raise SystemExit(0)
if __name__ == "__main__":
main(sys.argv)
Write
Preview
Loading…
Cancel
Save