Delete cleanup bad files without file info on update
This commit is contained in:
parent
fe59618eaf
commit
65e5d05a9e
1 changed files with 6 additions and 0 deletions
|
@ -331,6 +331,12 @@ class Site(object):
|
||||||
self.content_manager.loadContent("content.json", load_includes=False) # Reload content.json
|
self.content_manager.loadContent("content.json", load_includes=False) # Reload content.json
|
||||||
self.content_updated = None # Reset content updated time
|
self.content_updated = None # Reset content updated time
|
||||||
self.updateWebsocket(updating=True)
|
self.updateWebsocket(updating=True)
|
||||||
|
|
||||||
|
for bad_file in self.bad_files.keys():
|
||||||
|
if self.content_manager.getFileInfo(bad_file) is False:
|
||||||
|
del self.bad_files[bad_file]
|
||||||
|
self.log.debug("No info for file: %s, removing from bad_files" % bad_file)
|
||||||
|
|
||||||
if announce:
|
if announce:
|
||||||
self.announce()
|
self.announce()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue