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