From 7539d5b70e0c088b26ba086da4bccfc1e5bb877e Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Thu, 27 Dec 2007 01:30:40 +0000 Subject: [PATCH] Since KeyboardInterrupt is "common" then catch the exception, print to stderr, and exit. No traceback, which says "error" to me... --- src/gajim.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 044c81cee..83484a666 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -2953,4 +2953,7 @@ if __name__ == '__main__': osx.init() Interface() - gtk.main() + try: + gtk.main() + except KeyboardInterrupt: + print >> sys.stderr, 'KeyboardInterrupt'