From 0fbde67f2a41886ae07594facb01cb7ceae30ce5 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 20 Mar 2019 09:08:47 +0100 Subject: [PATCH] plugin XEP-0384: handle NoEligibleDevicesException --- sat/plugins/plugin_xep_0384.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sat/plugins/plugin_xep_0384.py b/sat/plugins/plugin_xep_0384.py index 7b6a23a4..689ef149 100644 --- a/sat/plugins/plugin_xep_0384.py +++ b/sat/plugins/plugin_xep_0384.py @@ -820,6 +820,12 @@ class OMEMO(object): problem.device) expect_problems.setdefault(problem.bare_jid, set()).add( problem.device) + elif isinstance(problem, omemo_excpt.NoEligibleDevicesException): + if untrusted or found_bundles: + # we may have new devices after this run, so let's continue for now + continue + else: + raise problem else: raise problem