Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-08-08 13:57:19 (GMT)
committer Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-08-08 13:57:19 (GMT)
commit3273bacf555ada0a8a4ffe8c35ec0083d0fdde53 (patch)
tree02735146e6e7de0bb2f073214e1e6f28463cdd19
parentf65f43afd623479e95da5d6b48edc383b4e054c7 (diff)
catch the InvalidHandle exception and not InspectHandles (too fast completion error...)
-rw-r--r--src/telepathy_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/telepathy_plugin.py b/src/telepathy_plugin.py
index 3344361..25bbd1c 100644
--- a/src/telepathy_plugin.py
+++ b/src/telepathy_plugin.py
@@ -364,7 +364,7 @@ class TelepathyPlugin(gobject.GObject):
try:
jid = self._conn[CONN_INTERFACE].InspectHandles(handle_type,
[handle])
- except (InvalidArgument, InspectHandles):
+ except (InvalidArgument, InvalidHandle):
continue
else:
jids.append(jid[0])
@@ -393,7 +393,7 @@ class TelepathyPlugin(gobject.GObject):
try:
jids = self._conn[CONN_INTERFACE].InspectHandles(
HANDLE_TYPE_CONTACT, relevant)
- except (InvalidArgument, InspectHandles):
+ except (InvalidArgument, InvalidHandle):
# InspectHandles failed so discard invalid handles by trying to
# inspect them one by one.
# FIXME: the Contacts interface should offer a proper way to do this.