Skip to content

Commit f0425e8

Browse files
committed
format info log
1 parent 0f51005 commit f0425e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openeo_driver/datacube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,9 @@ def write_assets(
600600
filename = str(directory)
601601
directory_parent = Path(filename).parent
602602

603-
format_info = IOFORMATS.get(format, None)
604-
if format_info is None:
603+
if format not in IOFORMATS:
605604
raise ProcessParameterInvalidException(parameter="format", process="save_result", reason=f"Received unknown format: {format}, supported formats: {list(IOFORMATS.keys())}")
605+
format_info = IOFORMATS.get(format)
606606
# TODO: check if format can be used for vector data?
607607
path = directory_parent / f"vectorcube.{format_info.extension}"
608608

0 commit comments

Comments
 (0)