diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-08-29 20:02:48 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-08-29 20:02:48 +0300 |
commit | 193bbff1e71a38bcc88dbba485589677a86467fd (patch) | |
tree | 5ee9efdc562cf928cd3a34e923e3a3846accc712 /nbxmpp/modules | |
parent | c72b4fbdbda1a8f954ad9c28656bcb9b54a7acc4 (diff) |
Annotations: Dont raise error on empty storage
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: |