Commit 193bbff1 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Annotations: Dont raise error on empty storage

parent c72b4fbd
......@@ -58,13 +58,8 @@ class Annotations:
return raise_error(log.warning, stanza, 'stanza-malformed',
'No annotations found')
nodes = storage.getTags('note')
if not nodes:
return raise_error(, stanza, 'is-empty',
'No annotations found')
notes = []
for note in nodes:
for note in storage.getTags('note'):
jid = JID(note.getAttr('jid'))
except Exception as error:
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