Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-12-09 12:07:25 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-12-09 12:07:25 (GMT)
commit43d923b4d58adb95af50bf1e64f791abf0ea59bd (patch)
treeb5fee2d9355c69c467292a9878f1f9b23f811c04 /src/sugar
parent054aaf8590661cd80ffd8f257989f1988648f391 (diff)
Log an error message when GetPreferredConnection fails
Diffstat (limited to 'src/sugar')
-rw-r--r--src/sugar/presence/presenceservice.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sugar/presence/presenceservice.py b/src/sugar/presence/presenceservice.py
index e2398a8..a7fd1a4 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