comparison 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
comparison
equal deleted inserted replaced
2859:4e875d9eea48 2860:851c47cc4ae7
818 if problem.device in missing: 818 if problem.device in missing:
819 missing_bundles.setdefault(pb_entity, set()).add( 819 missing_bundles.setdefault(pb_entity, set()).add(
820 problem.device) 820 problem.device)
821 expect_problems.setdefault(problem.bare_jid, set()).add( 821 expect_problems.setdefault(problem.bare_jid, set()).add(
822 problem.device) 822 problem.device)
823 elif isinstance(problem, omemo_excpt.NoEligibleDevicesException):
824 if untrusted or found_bundles:
825 # we may have new devices after this run, so let's continue for now
826 continue
827 else:
828 raise problem
823 else: 829 else:
824 raise problem 830 raise problem
825 831
826 for peer_jid, devices in missing_bundles.iteritems(): 832 for peer_jid, devices in missing_bundles.iteritems():
827 devices_s = [unicode(d) for d in devices] 833 devices_s = [unicode(d) for d in devices]