mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +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:
|
||||
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 = func(username, host)
|
||||
if password is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue