From 2c4b9c996df914a5e265570bd9054395888e5fa9 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 24 Apr 2006 10:43:45 -0400 Subject: [PATCH] Exit cleanly on keyboard interrupt --- chat/chat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chat/chat.py b/chat/chat.py index 33026b2c..038d35a4 100755 --- a/chat/chat.py +++ b/chat/chat.py @@ -235,7 +235,10 @@ class ChatActivity(activity.Activity): return buddy.chat() def run(self): - gtk.main() + try: + gtk.main() + except KeyboardInterrupt: + pass def main(): app = ChatActivity()