Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0384.py @ 2745:3ee396b2ecf3
plugin XEP-0384: don't ignore StanzaError if it's not item-not-found
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 04 Jan 2019 09:20:32 +0100 |
parents | e6716d90c2fe |
children | ae495f27b316 |
comparison
equal
deleted
inserted
replaced
2744:e6716d90c2fe | 2745:3ee396b2ecf3 |
---|---|
638 items, metadata = yield self._p.getItems(client, entity_jid, NS_OMEMO_DEVICES) | 638 items, metadata = yield self._p.getItems(client, entity_jid, NS_OMEMO_DEVICES) |
639 except error.StanzaError as e: | 639 except error.StanzaError as e: |
640 if e.condition == 'item-not-found': | 640 if e.condition == 'item-not-found': |
641 log.info(_(u"there is no node to handle OMEMO devices")) | 641 log.info(_(u"there is no node to handle OMEMO devices")) |
642 defer.returnValue(set()) | 642 defer.returnValue(set()) |
643 raise e | |
643 | 644 |
644 devices = self.parseDevices(items) | 645 devices = self.parseDevices(items) |
645 defer.returnValue(devices) | 646 defer.returnValue(devices) |
646 | 647 |
647 def setDevicesEb(self, failure_): | 648 def setDevicesEb(self, failure_): |