diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-08-23 12:41:07 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-12-27 18:57:33 +0100 |
commit | 0c86e9a52f9e251b21696f023ea67a3bd7c55450 (patch) | |
tree | 269d2110bacce2e148d8c3b9d88a70449e53a2b5 /plugins | |
parent | 5a1a2e6c18280cf505bacc051e9b539bdd5fcf0c (diff) | |
download | poezio-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.py | 2 |
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, |