From 43d923b4d58adb95af50bf1e64f791abf0ea59bd Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 9 Dec 2008 13:07:25 +0100 Subject: [PATCH] Log an error message when GetPreferredConnection fails --- src/sugar/presence/presenceservice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sugar/presence/presenceservice.py b/src/sugar/presence/presenceservice.py index e2398a82..a7fd1a4f 100644 --- a/src/sugar/presence/presenceservice.py +++ b/src/sugar/presence/presenceservice.py @@ -21,6 +21,7 @@ STABLE. """ import logging +import traceback import dbus import dbus.exceptions @@ -520,6 +521,7 @@ class PresenceService(gobject.GObject): try: bus_name, object_path = self._ps.GetPreferredConnection() except dbus.exceptions.DBusException: + logging.error(traceback.format_exc()) return None return bus_name, object_path