Remove unused var
This commit is contained in:
parent
09d3f02cc1
commit
d5c7ce2630
1 changed files with 3 additions and 3 deletions
|
@ -282,7 +282,7 @@ class NextcloudHandler:
|
|||
"total_cached_password": len(self.cache['cached_passwords'])
|
||||
}
|
||||
)
|
||||
except cryptography.fernet.InvalidToken as error:
|
||||
except cryptography.fernet.InvalidToken:
|
||||
self.debug(
|
||||
{
|
||||
"action": "_read_cache",
|
||||
|
@ -884,9 +884,9 @@ class NextcloudHandler:
|
|||
new_obj['folder'] = folder_id
|
||||
else:
|
||||
new_obj.pop('folder', None)
|
||||
if not 'username' in new_obj:
|
||||
if 'username' not in new_obj:
|
||||
new_obj['username'] = ''
|
||||
if not 'url' in new_obj:
|
||||
if 'url' not in new_obj:
|
||||
new_obj['url'] = ''
|
||||
exists_password = self.exists_password(new_obj)
|
||||
if not exists_password:
|
||||
|
|
Loading…
Reference in a new issue