mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-28 10:04:43 +00:00
add assertion for check queue
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2481 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
0cdb6ca629
commit
ecd7e44935
1 changed files with 2 additions and 0 deletions
|
|
@ -199,6 +199,8 @@ class Cache (linkcheck.lock.AssertLock):
|
|||
for key in url_data.aliases:
|
||||
linkcheck.log.debug(linkcheck.LOG_CACHE,
|
||||
"Cache alias %r...", key)
|
||||
assert key not in self.checked, \
|
||||
key + u", " + unicode(self.checked[key])
|
||||
self.checked[key] = data
|
||||
finally:
|
||||
self.release()
|
||||
|
|
|
|||
Loading…
Reference in a new issue