fix: fix ValueError: list.remove(x): x not in list
This commit is contained in:
parent
6c0ed92ac8
commit
f828ffd885
@ -176,7 +176,10 @@ class Postprocessor(
|
|||||||
await copy_files_related(video_path)
|
await copy_files_related(video_path)
|
||||||
if result_path != video_path:
|
if result_path != video_path:
|
||||||
self._completed_files.append(danmaku_path(result_path))
|
self._completed_files.append(danmaku_path(result_path))
|
||||||
self._completed_files.remove(danmaku_path(video_path))
|
with suppress(ValueError):
|
||||||
|
self._completed_files.remove(
|
||||||
|
danmaku_path(video_path)
|
||||||
|
)
|
||||||
if not self._debug:
|
if not self._debug:
|
||||||
if self._should_delete_source_files(remuxing_result):
|
if self._should_delete_source_files(remuxing_result):
|
||||||
await discard_dir(os.path.dirname(video_path))
|
await discard_dir(os.path.dirname(video_path))
|
||||||
|
Loading…
Reference in New Issue
Block a user