diff options
author | Dan Williams <dcbw@localhost.localdomain> | 2006-09-22 16:13:34 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@localhost.localdomain> | 2006-09-22 16:13:34 (GMT) |
commit | 7061434703103bb84d01b774d49d2b17498c160f (patch) | |
tree | b51593147f90080d0aa030795f79170e29ebb982 /sugar | |
parent | 4a1995af8d9e31602628900337328c366e5ea56f (diff) |
Don't traceback on Ctrl+C
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/simulator.py | 5 |
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) |