From 7061434703103bb84d01b774d49d2b17498c160f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 22 Sep 2006 16:13:34 +0000 Subject: Don't traceback on Ctrl+C --- (limited to 'sugar') diff --git a/sugar/simulator.py b/sugar/simulator.py index b46b9c3..271d5ed 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) -- cgit v0.9.1