diff --git a/omemo/file_crypto.py b/omemo/file_crypto.py index 38f92f0..59dc102 100644 --- a/omemo/file_crypto.py +++ b/omemo/file_crypto.py @@ -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): diff --git a/omemo/ui.py b/omemo/ui.py index 3b708f3..e58ad73 100644 --- a/omemo/ui.py +++ b/omemo/ui.py @@ -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)