mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Capture edge case where all "representations" are tagged for delete
This commit is contained in:
parent
a2a77b8a20
commit
6fe6841c99
1 changed files with 6 additions and 0 deletions
|
|
@ -255,6 +255,12 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
|
||||
prepared_representations.append(prepared)
|
||||
|
||||
if not prepared_representations:
|
||||
# Even though we check `instance.data["representations"]` earlier
|
||||
# this could still happen if all representations were tagged with
|
||||
# "delete" and thus are skipped for integration
|
||||
raise RuntimeError("No representations prepared to publish.")
|
||||
|
||||
# Each instance can also have pre-defined transfers not explicitly
|
||||
# part of a representation - like texture resources used by a
|
||||
# .ma representation. Those destination paths are pre-defined, etc.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue