Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-10-31 19:12:58 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-11-01 12:29:31 (GMT)
commit70dd09157860b0ea85edce47fe619f408c08ccfe (patch)
treeb4552ff28e4f04abcfbc886643ed3529aa2d6f49
parent2c61ebe4f6f1db24550f8ac312efc061980bab33 (diff)
Import dbus to get DBusException
-rw-r--r--src/telepathy_plugin.py3
1 files changed, 2 insertions, 1 deletions
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