Commit 34a11f74 authored by Eric Duminil's avatar Eric Duminil
Browse files

Show error message if RegionChooser fails

parent 1b0a939a
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -151,11 +151,13 @@ def extract_region(output_dir: Path, location_name: str, wkt: str) -> None:
f'@{params_path}'
],
text=True,
capture_output=True,
check=True
capture_output=True
)
if (result.stderr):
print("\n")
print(result.stderr)
if result.returncode != 0:
raise ValueError(f"RegionChooser failed with code {result.returncode}")
print(" DONE!")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment