mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-18 21:31:00 +00:00
Allow overwriting of an old check result.
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3776 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
1c733e9b40
commit
66ff422f6b
1 changed files with 2 additions and 2 deletions
|
|
@ -157,11 +157,11 @@ class UrlBase (object):
|
|||
# flag if the result should be cached
|
||||
self.caching = True
|
||||
|
||||
def set_result (self, msg, valid=True):
|
||||
def set_result (self, msg, valid=True, overwrite=False):
|
||||
"""
|
||||
Set result string and validity.
|
||||
"""
|
||||
if self.has_result:
|
||||
if self.has_result and not overwrite:
|
||||
log.warn(LOG_CHECK,
|
||||
"Double result %r (previous %r) for %s", msg, self.result, self)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue