Mercurial > libervia-backend
changeset 2860:851c47cc4ae7
plugin XEP-0384: handle NoEligibleDevicesException
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 20 Mar 2019 09:08:47 +0100 |
parents | 4e875d9eea48 |
children | e9e33e05d143 |
files | sat/plugins/plugin_xep_0384.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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