Skip to content
Snippets Groups Projects
Commit 9985d145 authored by Klaas Kliffen's avatar Klaas Kliffen :satellite:
Browse files

Check for empty input

parent 7f776a3d
Branches
No related tags found
1 merge request!31Hotfix/add logging
Pipeline #40760 passed
......@@ -156,7 +156,13 @@ def insert_task_into_atdb(workspecification_id: int):
pk=workspecification_id
)
inputs: Dict[str, Any] = work_spec.inputs.copy()
try:
entries: List[dict] = inputs.pop("surls")
except IndexError:
logger.error("Work specification does not contain any surls. This should never happen")
raise RequestNotOk
batches = split_entries_to_batches(entries, work_spec.batch_size)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment