Do not use dbus_bindings for exceptions. Use dbus.exceptions. Thanks J5 to point it out.

This commit is contained in:
Marco Pesenti Gritti
2006-07-25 22:52:45 +02:00
parent ef71679ed6
commit 1ef5c576c2
6 changed files with 13 additions and 119 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import avahi, dbus, dbus.glib, dbus.dbus_bindings, gobject
import avahi, dbus, dbus.glib, gobject
import Buddy
import Service
import random
@@ -603,7 +603,7 @@ class PresenceService(object):
domain, "", # let Avahi figure the 'host' out
dbus.UInt16(port), info,)
group.Commit()
except dbus.dbus_bindings.DBusException, exc:
except dbus.exceptions.DBusException, exc:
# FIXME: ignore local name collisions, since that means
# the zeroconf service is already registered. Ideally we
# should un-register it an re-register with the correct info