Since KeyboardInterrupt is "common" then catch the exception, print to stderr, and exit. No traceback, which says "error" to me...

This commit is contained in:
Travis Shirk 2007-12-27 01:30:40 +00:00
parent 6247de33da
commit 7539d5b70e
1 changed files with 4 additions and 1 deletions

View File

@ -2953,4 +2953,7 @@ if __name__ == '__main__':
osx.init()
Interface()
gtk.main()
try:
gtk.main()
except KeyboardInterrupt:
print >> sys.stderr, 'KeyboardInterrupt'