diff options
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r-- | nbxmpp/modules/annotations.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/nbxmpp/modules/annotations.py b/nbxmpp/modules/annotations.py index d239532..507e27f 100644 --- a/nbxmpp/modules/annotations.py +++ b/nbxmpp/modules/annotations.py @@ -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(log.info, stanza, 'is-empty', - 'No annotations found') - notes = [] - for note in nodes: + for note in storage.getTags('note'): try: jid = JID(note.getAttr('jid')) except Exception as error: |