Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-08-29 20:02:48 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-08-29 20:02:48 +0300
commit193bbff1e71a38bcc88dbba485589677a86467fd (patch)
tree5ee9efdc562cf928cd3a34e923e3a3846accc712 /nbxmpp/modules
parentc72b4fbdbda1a8f954ad9c28656bcb9b54a7acc4 (diff)
Annotations: Dont raise error on empty storage
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r--nbxmpp/modules/annotations.py7
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: