Give up files after 30 tries

This commit is contained in:
shortcutme 2017-02-19 00:52:31 +01:00
parent 2eef0bded1
commit 63b609f725
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -1059,3 +1059,6 @@ class Site(object):
self.bad_files[inner_path] = self.bad_files.get(inner_path, 0) + 1
self.updateWebsocket(file_failed=inner_path)
if self.bad_files[inner_path] > 30:
del self.bad_files[inner_path] # Give up after 30 tries