Commit 0a89e52d authored by Philipp Hörist's avatar Philipp Hörist

[set_location] Dont use deprecated attribute

parent 7b5a61a7
......@@ -254,8 +254,8 @@ class SetLocationPluginConfigDialog(GajimPluginConfigDialog):
pep = accounts[account].contacts._contacts[contact][0].pep
if 'location' not in pep:
continue
lat = pep['location']._pep_specific_data.get('lat', None)
lon = pep['location']._pep_specific_data.get('lon', None)
lat = pep['location'].data.get('lat', None)
lon = pep['location'].data.get('lon', None)
if not lat or not lon:
continue
name = accounts[account].contacts.get_first_contact_from_jid(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment