mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-19 20:01:53 +00:00
check if urldata.url is None
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3219 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
224f5e723b
commit
00a60c6906
1 changed files with 5 additions and 2 deletions
|
|
@ -72,8 +72,11 @@ class Aggregate (object):
|
||||||
url_data = self.urlqueue.get()
|
url_data = self.urlqueue.get()
|
||||||
if url_data is not None:
|
if url_data is not None:
|
||||||
try:
|
try:
|
||||||
url = self.config['logger'].encode(url_data.url)
|
if url_data.url is None:
|
||||||
threading.currentThread().setName(url)
|
url = ""
|
||||||
|
else:
|
||||||
|
url = url_data.url.encode("ascii", "replace")
|
||||||
|
threading.currentThread().setName("Thread-%s" % url)
|
||||||
if not url_data.has_result:
|
if not url_data.has_result:
|
||||||
url_data.check()
|
url_data.check()
|
||||||
self.logger.log_url(url_data)
|
self.logger.log_url(url_data)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue