mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Correctly fail extraction if user "interrupts" the extraction
This commit is contained in:
parent
dd92fe1e4e
commit
3804980a4f
1 changed files with 11 additions and 1 deletions
|
|
@ -28,6 +28,16 @@ class ExtractAss(openpype.api.Extractor):
|
|||
|
||||
render_rop(ropnode)
|
||||
|
||||
# Unfortunately user interrupting the extraction does not raise an
|
||||
# error and thus still continues to the integrator. To capture that
|
||||
# we make sure all files exist
|
||||
files = instance.data["frames"]
|
||||
missing = [fname for fname in files
|
||||
if not os.path.exists(os.path.join(staging_dir, fname))]
|
||||
if missing:
|
||||
raise RuntimeError("Failed to complete Arnold ass extraction. "
|
||||
"Missing output files: {}".format(missing))
|
||||
|
||||
if "representations" not in instance.data:
|
||||
instance.data["representations"] = []
|
||||
|
||||
|
|
@ -37,7 +47,7 @@ class ExtractAss(openpype.api.Extractor):
|
|||
representation = {
|
||||
'name': 'ass',
|
||||
'ext': ext,
|
||||
"files": instance.data["frames"],
|
||||
"files": files,
|
||||
"stagingDir": staging_dir,
|
||||
"frameStart": instance.data["frameStart"],
|
||||
"frameEnd": instance.data["frameEnd"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue