Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwebactivity.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/webactivity.py b/webactivity.py
index d76967d..2e2795a 100755
--- a/webactivity.py
+++ b/webactivity.py
@@ -122,12 +122,15 @@ class WebActivity(activity.Activity):
self.messenger = None
self.connect('shared', self._shared_cb)
- # Get the Presence Service
+ # Get the Presence Service
self.pservice = presenceservice.get_instance()
- name, path = self.pservice.get_preferred_connection()
- self.tp_conn_name = name
- self.tp_conn_path = path
- self.conn = telepathy.client.Connection(name, path)
+ try:
+ name, path = self.pservice.get_preferred_connection()
+ self.tp_conn_name = name
+ self.tp_conn_path = path
+ self.conn = telepathy.client.Connection(name, path)
+ except TypeError:
+ _logger.debug('Offline')
self.initiating = None
if self._shared_activity is not None: