Move file forgot to separate function

This commit is contained in:
shortcutme 2018-09-17 15:27:29 +02:00
parent 9658c2d553
commit 6fc66b7b13
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 5 additions and 2 deletions

View File

@ -1058,5 +1058,8 @@ class Site(object):
self.updateWebsocket(file_failed=inner_path)
if self.bad_files.get(inner_path, 0) > 30:
self.log.debug("Giving up on %s" % inner_path)
del self.bad_files[inner_path] # Give up after 30 tries
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