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
This commit is contained in:
calvin 2006-05-24 00:00:33 +00:00
parent f30964679c
commit d557b0208f

View file

@ -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()