projekty
/
imago.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b0e7e64
)
catching keyboard interrupt
author
Tomas Musil
<tomik.musil@gmail.com>
Sat, 22 Sep 2012 15:03:46 +0000
(17:03 +0200)
committer
Tomas Musil
<tomik.musil@gmail.com>
Sat, 22 Sep 2012 15:03:46 +0000
(17:03 +0200)
imago.py
patch
|
blob
|
history
diff --git
a/imago.py
b/imago.py
index
87eaecf
..
552a359
100755
(executable)
--- a/
imago.py
+++ b/
imago.py
@@
-222,4
+222,8
@@
def intersections_from_angl_dist(lines, size):
return intersections
if __name__ == '__main__':
return intersections
if __name__ == '__main__':
- sys.exit(main())
+ try:
+ sys.exit(main())
+ except KeyboardInterrupt:
+ print "Interrupted."
+ sys.exit()