From b2fccdb4845b4d8ef9ff9db486ac3c10e599ef5b Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 30 May 2015 12:45:06 +0200 Subject: [PATCH] Bugfix: Cache should be checked *before* command is called --- vdirsyncer/utils/password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdirsyncer/utils/password.py b/vdirsyncer/utils/password.py index d349421..9f22848 100644 --- a/vdirsyncer/utils/password.py +++ b/vdirsyncer/utils/password.py @@ -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: