Skip to content

Commit 3bdc312

Browse files
committed
operators: expression: parse outputBand only if not none
1 parent c140c4b commit 3bdc312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geoengine/workflow_builder/operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def from_operator_dict(cls, operator_dict: Dict[str, Any]) -> 'Expression':
693693
raise ValueError("Invalid operator type")
694694

695695
output_band = None
696-
if "outputBand" in operator_dict["params"] and operator_dict["params"] is not None:
696+
if "outputBand" in operator_dict["params"] and operator_dict["params"]["outputBand"] is not None:
697697
output_band = RasterBandDescriptor.from_response(
698698
geoengine_openapi_client.RasterBandDescriptor.from_dict(
699699
operator_dict["params"]["outputBand"]

0 commit comments

Comments
 (0)