plugin XEP-0384: handle NoEligibleDevicesException

This commit is contained in:
Goffi 2019-03-20 09:08:47 +01:00
commit 0fbde67f2a

View file

@ -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