mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-19 03:51:07 +00:00
Allow missing cache keys in the in_progress queue. This occurs when syntax checks already set the result.
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3957 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
366c711b43
commit
7b489b5897
1 changed files with 2 additions and 3 deletions
5
linkcheck/cache/urlqueue.py
vendored
5
linkcheck/cache/urlqueue.py
vendored
|
|
@ -184,9 +184,8 @@ class UrlQueue (object):
|
|||
def _cache_url (self, key, url_data):
|
||||
"""Put URL result data into cache."""
|
||||
log.debug(LOG_CACHE, "Caching %r", key)
|
||||
assert key in self.in_progress, \
|
||||
"%r not in %s" % (key, self.in_progress)
|
||||
del self.in_progress[key]
|
||||
if key in self.in_progress:
|
||||
del self.in_progress[key]
|
||||
data = url_data.get_cache_data()
|
||||
self.checked[key] = data
|
||||
# check for aliases (eg. through HTTP redirections)
|
||||
|
|
|
|||
Loading…
Reference in a new issue