mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
OP-3722 - added check for empty context
This commit is contained in:
parent
e93558f961
commit
b178bb5384
1 changed files with 5 additions and 0 deletions
|
|
@ -232,6 +232,11 @@ class PypeCommands:
|
|||
fail_batch(_id, dbcon, msg)
|
||||
print("Another batch running, probably stuck, ask admin for help")
|
||||
|
||||
if not task_data["context"]:
|
||||
msg = "Batch manifest must contain context data"
|
||||
msg += "Create new batch and set context properly."
|
||||
fail_batch(_id, dbcon, msg)
|
||||
|
||||
asset_name, task_name, task_type = get_batch_asset_task_info(
|
||||
task_data["context"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue