mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-26 14:47:44 +00:00
Bugfix: Cache should be checked *before* command is called
This commit is contained in:
parent
224daba414
commit
b2fccdb484
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ def get_password(username, resource, _lock=threading.Lock()):
|
||||||
|
|
||||||
with _lock:
|
with _lock:
|
||||||
host = urlparse.urlsplit(resource).hostname
|
host = urlparse.urlsplit(resource).hostname
|
||||||
for func in (_password_from_command, _password_from_cache,
|
for func in (_password_from_cache, _password_from_command,
|
||||||
_password_from_netrc, _password_from_keyring):
|
_password_from_netrc, _password_from_keyring):
|
||||||
password = func(username, host)
|
password = func(username, host)
|
||||||
if password is not None:
|
if password is not None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue