From 0c86e9a52f9e251b21696f023ea67a3bd7c55450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 23 Aug 2019 12:41:07 +0200 Subject: omemo: Edit and move TODO comment for NoEligibleDevicesException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/omemo_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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, -- cgit v1.2.3