diff --git a/shell/PresenceService/PresenceService.py b/shell/PresenceService/PresenceService.py index 72e9460a..4fe0b2f6 100644 --- a/shell/PresenceService/PresenceService.py +++ b/shell/PresenceService/PresenceService.py @@ -696,13 +696,19 @@ class PresenceService(object): if stype in self._registered_service_types: self._registered_service_types.remove(stype) + def main(): + from sugar import TracebackUtils loop = gobject.MainLoop() ps = PresenceService() + tbh = TracebackUtils.TracebackHelper() try: loop.run() except KeyboardInterrupt: print 'Ctrl+C pressed, exiting...' + del tbh + + if __name__ == "__main__": main()