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:
authorAndré Apitzsch <git@apitzsch.eu>2020-04-24 13:00:44 +0300
committerAndré Apitzsch <git@apitzsch.eu>2020-04-24 13:00:44 +0300
commite8d421fe7d42fe6799a3a067b9f29859a91cae4c (patch)
tree24dcdfb8f36d83f7e4e07bdb84ba3ffbbc26e5f0
parent48974ece44aac2c444d284a9e821ad74e46e03f4 (diff)
Location: Fix ValueError: too many values to unpack
-rw-r--r--nbxmpp/modules/location.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbxmpp/modules/location.py b/nbxmpp/modules/location.py
index 9720bdc..0416234 100644
--- a/nbxmpp/modules/location.py
+++ b/nbxmpp/modules/location.py
@@ -66,7 +66,7 @@ class Location(BaseModule):
item = Node('geoloc', {'xmlns': Namespace.LOCATION})
if data is not None:
data = data._asdict()
- for tag, value in data:
+ for tag, value in data.items():
if value is not None:
item.addChild(tag, payload=value)