mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
bugfix: password might have been undefined
This commit is contained in:
parent
2a2e4dd04d
commit
9a0d70bcce
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ def get_password(username, resource):
|
||||||
try:
|
try:
|
||||||
import keyring
|
import keyring
|
||||||
except ImportError:
|
except ImportError:
|
||||||
keyring = None
|
keyring, password = None, None
|
||||||
else:
|
else:
|
||||||
password = keyring.get_password(
|
password = keyring.get_password(
|
||||||
'vdirsyncer:' + hostname, username)
|
'vdirsyncer:' + hostname, username)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue