mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-16 18:41:07 +00:00
No need to encode url in Checker.check_url_data()
Was causing b'' in log messages e.g. CheckThread-b'http:...
This commit is contained in:
parent
96e1c00ff7
commit
42eba19a7d
1 changed files with 1 additions and 5 deletions
|
|
@ -111,9 +111,5 @@ class Checker(task.LoggedCheckedTask):
|
|||
|
||||
def check_url_data(self, url_data):
|
||||
"""Check one URL data instance."""
|
||||
if url_data.url is None:
|
||||
url = ""
|
||||
else:
|
||||
url = url_data.url.encode("ascii", "replace")
|
||||
self.setName("CheckThread-%s" % url)
|
||||
self.setName("CheckThread-%s" % (url_data.url or ""))
|
||||
check_url(url_data, self.logger)
|
||||
|
|
|
|||
Loading…
Reference in a new issue