Commit 39cb5cc7 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

fix: Roster: Don’t fail when no roster attribute is found

parent bb03e94e
Pipeline #9856 passed with stages
in 58 seconds
......@@ -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'):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment