Commit 16e776f4 authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Dont use deprecated way to get path

parent 7c785000
......@@ -52,7 +52,7 @@ except ImportError:
log.exception('ImportError')
ERROR = True
DIRECTORY = os.path.join(configpaths.gajimpaths['MY_DATA'], 'downloads')
DIRECTORY = os.path.join(configpaths.get('MY_DATA'), 'downloads')
try:
if not os.path.exists(DIRECTORY):
......
......@@ -127,7 +127,7 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
def get_qrcode(self, jid, sid, fingerprint):
file_name = 'omemo_{}.png'.format(jid)
path = os.path.join(
configpaths.gajimpaths['MY_DATA'], file_name)
configpaths.get('MY_DATA'), file_name)
ver_string = 'xmpp:{}?omemo-sid-{}={}'.format(jid, sid, fingerprint)
log.debug('Verification String: ' + ver_string)
......
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