From c473fa611078082941132858279ab4ccaea62ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Fri, 19 Jan 2018 01:50:11 +0100 Subject: [PATCH] location_listener: location update notifier requires three parameters the third parameter contains the location parameter specification --- gajim/common/location_listener.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gajim/common/location_listener.py b/gajim/common/location_listener.py index a70dc0e9e..e40e9d4fb 100644 --- a/gajim/common/location_listener.py +++ b/gajim/common/location_listener.py @@ -43,7 +43,9 @@ class LocationListener: def __init__(self): self._data = {} - def _on_location_update(self, simple): + # Note: do not remove third parameter `paramSpec` + # because notify signal expects three parameters + def _on_location_update(self, simple, paramSpec=None): location = simple.get_location() timestamp = location.get_property("timestamp")[0] lat = location.get_property("latitude")