[omemo] Fix uri NameError in debug log

This commit is contained in:
Daniel Brötzmann
2019-05-13 08:49:27 +02:00
parent f1c8c4405f
commit a796c8811b

View File

@@ -79,7 +79,7 @@ class FileDecryption:
file = File(urlparts.geturl(), instance.account) file = File(urlparts.geturl(), instance.account)
if urlparts.scheme not in ['https', 'aesgcm'] or not urlparts.netloc: if urlparts.scheme not in ['https', 'aesgcm'] or not urlparts.netloc:
log.info("Not accepting URL for decryption: %s", url) log.info("Not accepting URL for decryption: %s", uri.data)
return return
if urlparts.scheme == 'aesgcm': if urlparts.scheme == 'aesgcm':
@@ -87,7 +87,7 @@ class FileDecryption:
file.url = 'https://' + file.url[9:] file.url = 'https://' + file.url[9:]
if not self.is_encrypted(file): if not self.is_encrypted(file):
log.info('Url not encrypted: %s', url) log.info('URL not encrypted: %s', uri.data)
return return
self.create_paths(file) self.create_paths(file)