From 70dd09157860b0ea85edce47fe619f408c08ccfe Mon Sep 17 00:00:00 2001 From: Morgan Collett Date: Wed, 31 Oct 2007 19:12:58 +0000 Subject: Import dbus to get DBusException --- diff --git a/src/telepathy_plugin.py b/src/telepathy_plugin.py index 7b6d615..8baf3d1 100644 --- a/src/telepathy_plugin.py +++ b/src/telepathy_plugin.py @@ -20,6 +20,7 @@ import logging from itertools import izip +from dbus import DBusException import gobject from telepathy.client import (Channel, Connection) @@ -276,7 +277,7 @@ class TelepathyPlugin(gobject.GObject): if self._conn: try: self._conn[CONN_INTERFACE].Disconnect() - except dbus.DBusException, e: + except DBusException, e: _logger.debug('%s Disconnect(): %s', self._conn.object_path, e) self._conn_status = CONNECTION_STATUS_DISCONNECTED -- cgit v0.9.1