Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0384.py @ 2860:851c47cc4ae7
plugin XEP-0384: handle NoEligibleDevicesException
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 20 Mar 2019 09:08:47 +0100 |
parents | 4e875d9eea48 |
children | 03a09e16bf28 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0384.py Wed Mar 20 09:08:47 2019 +0100 +++ b/sat/plugins/plugin_xep_0384.py Wed Mar 20 09:08:47 2019 +0100 @@ -820,6 +820,12 @@ 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