Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--collaboration/telepathyclient.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/collaboration/telepathyclient.py b/collaboration/telepathyclient.py
index f3e8578..e00f053 100644
--- a/collaboration/telepathyclient.py
+++ b/collaboration/telepathyclient.py
@@ -18,15 +18,12 @@ import logging
import dbus
from dbus import PROPERTIES_IFACE
-try:
- from telepathy.interfaces import CLIENT, \
- CLIENT_APPROVER, \
- CLIENT_HANDLER, \
- CLIENT_INTERFACE_REQUESTS
- from telepathy.server import DBusProperties
- TELEPATHY_AVAILABLE = True
-except ImportError:
- TELEPATHY_AVAILABLE = False
+
+from telepathy.interfaces import CLIENT, \
+ CLIENT_APPROVER, \
+ CLIENT_HANDLER, \
+ CLIENT_INTERFACE_REQUESTS
+from telepathy.server import DBusProperties
import dispatch
@@ -40,8 +37,6 @@ _instance = None
class TelepathyClient(dbus.service.Object, DBusProperties):
def __init__(self):
- if not TELEPATHY_AVAILABLE:
- return None
self._interfaces = set([CLIENT, CLIENT_HANDLER,
CLIENT_INTERFACE_REQUESTS, PROPERTIES_IFACE,
CLIENT_APPROVER])