mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #2936 from pypeclub/bugfix/OP-2836_More-failsafes-prevent-errored-runs
General: More fail safe delete old versions
This commit is contained in:
commit
ce0bb1bf3c
2 changed files with 8 additions and 2 deletions
|
|
@ -492,7 +492,8 @@ class DeleteOldVersions(BaseAction):
|
|||
os.remove(file_path)
|
||||
self.log.debug("Removed file: {}".format(file_path))
|
||||
|
||||
remainders.remove(file_path_base)
|
||||
if file_path_base in remainders:
|
||||
remainders.remove(file_path_base)
|
||||
continue
|
||||
|
||||
seq_path_base = os.path.split(seq_path)[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue