diff options
author | André Apitzsch <git@apitzsch.eu> | 2020-04-24 13:00:44 +0300 |
---|---|---|
committer | André Apitzsch <git@apitzsch.eu> | 2020-04-24 13:00:44 +0300 |
commit | e8d421fe7d42fe6799a3a067b9f29859a91cae4c (patch) | |
tree | 24dcdfb8f36d83f7e4e07bdb84ba3ffbbc26e5f0 | |
parent | 48974ece44aac2c444d284a9e821ad74e46e03f4 (diff) |
Location: Fix ValueError: too many values to unpack
-rw-r--r-- | nbxmpp/modules/location.py | 2 |
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) |