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:
authorlovetox <philipp@hoerist.com>2020-03-28 10:50:53 +0300
committerlovetox <philipp@hoerist.com>2020-03-28 10:50:53 +0300
commit087a2798bb13d1840972184bf2991f9ec74bd38e (patch)
tree9eb5f375b773fbcfb8501a6f1a6a189fafb1ea24
parent80ec5753de06bc8e92dd49b2aec4f8b13ec8401d (diff)
RSM: Parse correct node
-rw-r--r--nbxmpp/modules/rsm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nbxmpp/modules/rsm.py b/nbxmpp/modules/rsm.py
index 811148a..89cb094 100644
--- a/nbxmpp/modules/rsm.py
+++ b/nbxmpp/modules/rsm.py
@@ -21,8 +21,8 @@ from nbxmpp.structs import RSMData
def parse_rsm(stanza):
- set_ = stanza.getTag('set', namespace=NS_RSM)
- if set_ is None:
+ stanza = stanza.getTag('set', namespace=NS_RSM)
+ if stanza is None:
return None
after = stanza.getTagData('after') or None