Skip to content

Commit f361b12

Browse files
Merge pull request #208 from geo-engine/operators-expression-parse-outputBand-if-not-none
operators: expression: parse outputBand only if not none
2 parents c140c4b + 3bdc312 commit f361b12

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)