mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
bugfix: auths may by None
This commit is contained in:
parent
542ce1216d
commit
d5fe537196
1 changed files with 4 additions and 3 deletions
|
|
@ -84,9 +84,10 @@ def get_password(username, resource):
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
sync_logger.debug("Read password for user {0} on {1} in .netrc".format(
|
if auths is not None:
|
||||||
auths[0], hostname))
|
sync_logger.debug("Read password for user {0} on {1} in .netrc".format(
|
||||||
return auths[1]
|
auths[0], hostname))
|
||||||
|
return auths[1]
|
||||||
|
|
||||||
# keyring
|
# keyring
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue