Commit df4f49c8 authored by Philipp Hörist's avatar Philipp Hörist

Blocking: Don't fail on malformed stanza

Fixes #99
parent 09c2edd3
Pipeline #4982 passed with stages
in 12 seconds
......@@ -47,6 +47,9 @@ class Blocking:
return raise_error(, stanza)
blocklist = stanza.getTag('blocklist', namespace=NS_BLOCKING)
if blocklist is None:
return raise_error(log.warning, stanza, 'stanza-malformed')
for item in blocklist.getTags('item'):
Markdown is supported
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