From 1b16b5e0f10da7b8dadce3d23927b5e171b00cbb Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 20 Dec 2011 09:10:44 +0000 Subject: [PATCH] minor fix --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index a875a892e..75af5668f 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -158,7 +158,7 @@ class Connect: url = urlparse.urljoin(conf.url, url) # flag to know if we are dealing with the same target host - target = reduce(lambda x, y: x == y, map(lambda x: urlparse.urlparse(x).netloc.split(':')[0], [url, conf.url])) + target = reduce(lambda x, y: x == y, map(lambda x: urlparse.urlparse(x).netloc.split(':')[0], [url, conf.url or ""])) if not retrying: # Reset the number of connection retries