Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: 39cb5cc7 by lovetox at 2022-05-12T22:05:28+02:00 fix: Roster: Don’t fail when no roster attribute is found
- - - - -
1 changed file:
- nbxmpp/modules/roster.py
Changes:
===================================== nbxmpp/modules/roster.py ===================================== @@ -120,7 +120,10 @@ class Roster(BaseModule): if ver_support: version = query.getAttr('ver') if version is None: - raise MalformedStanzaError('ver attribute missing', stanza) + # raise MalformedStanzaError('ver attribute missing', stanza) + # Prosody sometimes does not send ver attribute with some + # community modules + self._log.warning('no version attribute found')
pushed_items = [] for item in query.getTags('item'):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/39cb5cc7bc95f04a63249eada...