Catch files that can't be removed, skip them.
This commit is contained in:
parent
ac6db2a623
commit
077b55b87f
1 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,11 @@ class FileManager:
|
|||
else:
|
||||
filepath = path+"/"+file
|
||||
self.logger.log.info("Removing file {} on new show load.".format(filepath))
|
||||
os.remove(filepath)
|
||||
try:
|
||||
os.remove(filepath)
|
||||
except Exception:
|
||||
self.logger.log.warning("Failed to remove, skipping. Likely file is still in use.")
|
||||
continue
|
||||
channel_received[channel] = True
|
||||
|
||||
# If we receive a new status message, let's check for files which have not been pre-loaded.
|
||||
|
|
Loading…
Reference in a new issue