From d557b0208f5dc0d824af4a881882c738e5629ed1 Mon Sep 17 00:00:00 2001 From: calvin Date: Wed, 24 May 2006 00:00:33 +0000 Subject: [PATCH] whops, reintroduce url_data.url is None check git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3295 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/director/aggregator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linkcheck/director/aggregator.py b/linkcheck/director/aggregator.py index 53847cf0..8ac6681d 100644 --- a/linkcheck/director/aggregator.py +++ b/linkcheck/director/aggregator.py @@ -108,7 +108,10 @@ class Aggregate (object): Check one URL data instance. """ try: - url = url_data.url.encode("ascii", "replace") + if url_data.url is None: + url = "" + else: + url = url_data.url.encode("ascii", "replace") threading.currentThread().setName("Thread-%s" % url) if not url_data.has_result: url_data.check()