diff --git a/download_files_from_LGL_BW.py b/download_files_from_LGL_BW.py
index d5f20f7324e6f149b7c75d76d34d1096e7a6bf3a..f4a67f4cea07fa1ca1a7a2d70b1a3b0d9feadcf2 100644
--- a/download_files_from_LGL_BW.py
+++ b/download_files_from_LGL_BW.py
@@ -162,6 +162,8 @@ def extract_region(output_dir: Path, location_name: str, wkt: str) -> None:
 def main(polygons: dict[str, str]) -> None:
     """Downloads ZIP files, extracts CityGML files, and selects desired region."""
     for location_name, wkt in polygons.items():
+        if ' ' in location_name:
+            raise ValueError("Location name should not contain spaces: 'Some City' -> 'SomeCity'")
         output_dir = SCRIPT_DIR / (location_name + '.proj')
         output_dir.mkdir(parents=True, exist_ok=True)
         x1, x2, y1, y2 = wkt_polygon_to_grid_coords(location_name, wkt)