Enable traceback debugging in the PS

This commit is contained in:
Dan Williams 2006-08-16 23:06:13 -04:00
parent 6d7782654c
commit 3b8dbb0836

View File

@ -696,13 +696,19 @@ class PresenceService(object):
if stype in self._registered_service_types: if stype in self._registered_service_types:
self._registered_service_types.remove(stype) self._registered_service_types.remove(stype)
def main(): def main():
from sugar import TracebackUtils
loop = gobject.MainLoop() loop = gobject.MainLoop()
ps = PresenceService() ps = PresenceService()
tbh = TracebackUtils.TracebackHelper()
try: try:
loop.run() loop.run()
except KeyboardInterrupt: except KeyboardInterrupt:
print 'Ctrl+C pressed, exiting...' print 'Ctrl+C pressed, exiting...'
del tbh
if __name__ == "__main__": if __name__ == "__main__":
main() main()