Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--pippy_app.py11
2 files changed, 9 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 7500932..29609b6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+* #6475: Fix crash on launch when no telepathy connection (morgs)
+
18
* Updated translations for release.
diff --git a/pippy_app.py b/pippy_app.py
index 1e7bc56..5fbd6c7 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -193,10 +193,13 @@ class PippyActivity(ViewSourceActivity):
# 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:
+ self._logger.debug('No Telepathy CM, offline')
self.initiating = None
self.connect('shared', self._shared_cb)