From 825f1d205de79219e83e484c8445f0cf188fa49f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 19 May 2006 12:57:56 -0400 Subject: [PATCH] Don't traceback on Ctrl+C --- sugar/session/session.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sugar/session/session.py b/sugar/session/session.py index 94a61263..df0a0db4 100644 --- a/sugar/session/session.py +++ b/sugar/session/session.py @@ -38,4 +38,7 @@ def start(console): args.append('--console') os.spawnvp(os.P_NOWAIT, 'python', args) - gtk.main() + try: + gtk.main() + except KeyboardInterrupt: + pass