Log an error message when GetPreferredConnection fails

This commit is contained in:
Tomeu Vizoso 2008-12-09 13:07:25 +01:00
parent 054aaf8590
commit 43d923b4d5

View File

@ -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