diff --git a/gajim/common/dbus/location.py b/gajim/common/dbus/location.py index 424583dabbce58678490b090e7841d404776f09d..82791c6f16089bc46acbe87ad504713af8393660 100644 --- a/gajim/common/dbus/location.py +++ b/gajim/common/dbus/location.py @@ -21,6 +21,8 @@ from gi.repository import GLib from gajim.common import app +if app.is_installed('GEOCLUE'): + from gi.repository import Geoclue log = logging.getLogger('gajim.c.dbus.location') @@ -104,6 +106,5 @@ def enable(): log.warning('GeoClue not installed') return - from gi.repository import Geoclue listener = LocationListener.get() listener.start()