From 7061434703103bb84d01b774d49d2b17498c160f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 22 Sep 2006 12:13:34 -0400 Subject: [PATCH] Don't traceback on Ctrl+C --- sugar/simulator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sugar/simulator.py b/sugar/simulator.py index b46b9c3c..271d5ed5 100644 --- a/sugar/simulator.py +++ b/sugar/simulator.py @@ -99,7 +99,10 @@ class Bot: self._pservice = PresenceService.get_instance() - gtk.main() + try: + gtk.main() + except KeyboardInterrupt: + pass def add_action(self, action, minutes): self._timeline.add(action, minutes)