Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/simulator.py
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2006-09-22 16:13:34 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-09-22 16:13:34 (GMT)
commit7061434703103bb84d01b774d49d2b17498c160f (patch)
treeb51593147f90080d0aa030795f79170e29ebb982 /sugar/simulator.py
parent4a1995af8d9e31602628900337328c366e5ea56f (diff)
Don't traceback on Ctrl+C
Diffstat (limited to 'sugar/simulator.py')
-rw-r--r--sugar/simulator.py5
1 files changed, 4 insertions, 1 deletions
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)