Move some imports
This commit is contained in:
parent
b4f6116e3b
commit
8c23d5a4b5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue