[omemo] Fix uri NameError in debug log
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user