Commit 8c23d5a4 authored by Philipp Hörist's avatar Philipp Hörist

Move some imports

parent b4f6116e
......@@ -47,6 +47,9 @@ from gajim.common import app
from gajim.common import i18n
from gajim.common import configpaths
from gajim.common import logging_helpers
from gajim.common import exceptions
from gajim.common import caps_cache
from gajim.common import logger
class GajimApplication(Gtk.Application):
......@@ -124,9 +127,6 @@ class GajimApplication(Gtk.Application):
# Create and initialize Application Paths & Databases
app.detect_dependencies()
configpaths.create_paths()
from gajim.common import exceptions
from gajim.common import logger
from gajim.common import caps_cache
try:
app.logger = logger.Logger()
caps_cache.initialize(app.logger)
......
......@@ -436,8 +436,7 @@ class MucCapsCache:
identities, features, data = [], [], []
query_childs = stanza.getQueryChildren()
if not query_childs:
from gajim.common import app
app.log('gajim.muc').warning('%s returned empty disco info', jid)
log.warning('%s returned empty disco info', jid)
return
for child in query_childs:
......
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