From 0a89e52deea4ddf9271a93b3e0c7ff7d64fbebc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 20 Nov 2018 00:34:20 +0100 Subject: [PATCH] [set_location] Dont use deprecated attribute --- set_location/set_location.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/set_location/set_location.py b/set_location/set_location.py index 4f03b6f..f8e7801 100644 --- a/set_location/set_location.py +++ b/set_location/set_location.py @@ -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(