Fix import

This commit is contained in:
Philipp Hörist 2018-10-26 01:49:15 +02:00
parent bc97f6a941
commit 7bb4d07d2e
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,8 @@ from gi.repository import GLib
from gajim.common import app from gajim.common import app
if app.is_installed('GEOCLUE'):
from gi.repository import Geoclue
log = logging.getLogger('gajim.c.dbus.location') log = logging.getLogger('gajim.c.dbus.location')
@ -104,6 +106,5 @@ def enable():
log.warning('GeoClue not installed') log.warning('GeoClue not installed')
return return
from gi.repository import Geoclue
listener = LocationListener.get() listener = LocationListener.get()
listener.start() listener.start()