summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-08-23 12:41:07 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-27 18:57:33 +0100
commit0c86e9a52f9e251b21696f023ea67a3bd7c55450 (patch)
tree269d2110bacce2e148d8c3b9d88a70449e53a2b5 /plugins
parent5a1a2e6c18280cf505bacc051e9b539bdd5fcf0c (diff)
downloadpoezio-0c86e9a52f9e251b21696f023ea67a3bd7c55450.tar.gz
poezio-0c86e9a52f9e251b21696f023ea67a3bd7c55450.tar.bz2
poezio-0c86e9a52f9e251b21696f023ea67a3bd7c55450.tar.xz
poezio-0c86e9a52f9e251b21696f023ea67a3bd7c55450.zip
omemo: Edit and move TODO comment for NoEligibleDevicesException
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omemo_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py
index 345925f6..7fd352fa 100644
--- a/plugins/omemo_plugin.py
+++ b/plugins/omemo_plugin.py
@@ -138,13 +138,13 @@ class Plugin(E2EEPlugin):
# This is where you prompt your user to ask what to do. In
# this bot we will automatically trust undecided recipients.
self.core.xmpp['xep_0384'].trust(exn.bare_jid, exn.device, exn.ik)
- # TODO: catch NoEligibleDevicesException and MissingBundleException
except MissingBundleException as exn:
self.display_error(
'Could not find keys for device "%d" of recipient "%s". Skipping.' % (exn.device, exn.bare_jid),
)
device_list = expect_problems.setdefault(exn.bare_jid, [])
device_list.append(exn.device)
+ # TODO: catch NoEligibleDevicesException
except (IqError, IqTimeout) as exn:
self.display_error(
'An error occured while fetching information on a recipient.\n%r' % exn,