bugfix: auths may by None

This commit is contained in:
Christian Geier 2014-03-27 17:08:36 +01:00
parent 542ce1216d
commit d5fe537196

View file

@ -84,6 +84,7 @@ def get_password(username, resource):
except IOError:
pass
else:
if auths is not None:
sync_logger.debug("Read password for user {0} on {1} in .netrc".format(
auths[0], hostname))
return auths[1]