skip instances without uuid on instance toggle as review instancemay not have uuid

This commit is contained in:
iLLiCiTiT 2021-05-21 11:13:40 +02:00
parent d978c9c229
commit 632e57d21c

View file

@ -19,6 +19,10 @@ CREATE_PATH = os.path.join(PLUGINS_DIR, "create")
def on_instance_toggle(instance, old_value, new_value):
# Review may not have real instance in wokrfile metadata
if not instance.data.get("uuid"):
return
instance_id = instance.data["uuid"]
found_idx = None
current_instances = pipeline.list_instances()