Skip to content

Commit a48a155

Browse files
committed
handle key error
1 parent 1f6f8b6 commit a48a155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actinia/strds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def get_strds_raster_layers(
130130
possible_status,
131131
),
132132
)
133-
if "Dataset is empty" in resp["stderr"]:
133+
if "Dataset is empty" in str(resp["process_log"]):
134134
log.info("No raster layer found in STRDS <%s>.", self.name)
135135
self.raster_layers = {}
136136
# All other cases with status 400 should raise an error

0 commit comments

Comments
 (0)