diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-02-16 04:20:49 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-02-16 04:20:49 (GMT) |
commit | 3635ae42e9e47208542b3f95ac1bfb79a6707339 (patch) | |
tree | ebeb3dc272b53c54b54248e9cbb86b05ba19fd8f /extra/collaborationplugin.py | |
parent | 0510cde0adbf6dca69060fdccec83ee227c57a8f (diff) |
catch exception when importing telepathyclient
Diffstat (limited to 'extra/collaborationplugin.py')
-rw-r--r-- | extra/collaborationplugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/collaborationplugin.py b/extra/collaborationplugin.py index a910991..b07d892 100644 --- a/extra/collaborationplugin.py +++ b/extra/collaborationplugin.py @@ -169,6 +169,8 @@ class CollaborationPlugin(Plugin): dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) self._client_handler = telepathyclient.get_instance() + if self._client_handler == None: + raise RuntimeError('Telepathy client unavailable') self._neighborhood = get_neighborhood(params) self._neighborhood.connect('activity-added', self._activity_added_cb) self._neighborhood.connect('activity-removed', |