mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Update openpype/plugins/inventory/remove_and_load.py
Changed representation assertion into a warning with more info Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
43b71e4f1e
commit
291432d49b
1 changed files with 4 additions and 1 deletions
|
|
@ -35,7 +35,10 @@ class RemoveAndLoad(InventoryAction):
|
|||
representation = get_representation_by_id(
|
||||
project_name, container["representation"]
|
||||
)
|
||||
assert representation, "Representation not found"
|
||||
if not representation:
|
||||
self.log.warning(
|
||||
"Skipping remove and load because representation id is not"
|
||||
" found in database: '{}'".format(container["representation"])
|
||||
|
||||
# Remove container
|
||||
remove_container(container)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue