Bug fix (credentials used in combination with request file)

This commit is contained in:
Miroslav Stampar 2014-03-15 09:29:21 +01:00
parent 3b47418a1d
commit 0622cdf3d8

View File

@ -1115,7 +1115,7 @@ def _setAuthCred():
(used by connection handler)
"""
if kb.passwordMgr:
if kb.passwordMgr and all(_ is not None for _ in (conf.scheme, conf.hostname, conf.port, conf.authUsername, conf.authPassword)):
kb.passwordMgr.add_password(None, "%s://%s:%d" % (conf.scheme, conf.hostname, conf.port), conf.authUsername, conf.authPassword)
def _setHTTPAuthentication():