From 0622cdf3d8e769e48fd1ba45085374d16f2b6f42 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 15 Mar 2014 09:29:21 +0100 Subject: [PATCH] Bug fix (credentials used in combination with request file) --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index bcd48738e..bd89c64ce 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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():