diff --git a/download_files_from_LGL_BW.py b/download_files_from_LGL_BW.py index f4a67f4cea07fa1ca1a7a2d70b1a3b0d9feadcf2..790653028730617c7b26e38201ee3844f5e68735 100644 --- a/download_files_from_LGL_BW.py +++ b/download_files_from_LGL_BW.py @@ -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!")