Move file forgot to separate function
This commit is contained in:
parent
9658c2d553
commit
6fc66b7b13
1 changed files with 5 additions and 2 deletions
|
@ -1058,5 +1058,8 @@ class Site(object):
|
|||
self.updateWebsocket(file_failed=inner_path)
|
||||
|
||||
if self.bad_files.get(inner_path, 0) > 30:
|
||||
self.fileForgot(inner_path)
|
||||
|
||||
def fileForgot(self, inner_path):
|
||||
self.log.debug("Giving up on %s" % inner_path)
|
||||
del self.bad_files[inner_path] # Give up after 30 tries
|
||||
|
|
Loading…
Reference in a new issue