Skip to content

Commit 4168be6

Browse files
committed
better error for not finding source constraints
1 parent 4bfc3f8 commit 4168be6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openeo_driver/ProcessGraphDeserializer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,9 @@ def _extract_load_parameters(env: EvalEnv, source_id: tuple) -> LoadParameters:
581581

582582
filtered_constraints = [c for c in source_constraints if c[0] == source_id]
583583

584+
if len(filtered_constraints) == 0:
585+
raise Exception(f"Could not find source constraints for source {source_id}, available constraints are: {set([id for id,_ in source_constraints])}")
586+
584587
if "global_extent" not in source_constraints[0][1]:
585588

586589
for collection_id, constraint in source_constraints:

0 commit comments

Comments
 (0)