From a85e2a9398e24155e84598bb5210cd38175669e0 Mon Sep 17 00:00:00 2001
From: Michael Rudolf <rudolf@geo.tu-darmstadt.de>
Date: Mon, 26 May 2025 17:06:09 +0200
Subject: [PATCH] Fixed error for districts with spaces in their name.

---
 u4py/io/docx_report.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/u4py/io/docx_report.py b/u4py/io/docx_report.py
index 2dcf8d6..242067b 100644
--- a/u4py/io/docx_report.py
+++ b/u4py/io/docx_report.py
@@ -229,7 +229,7 @@ def hlnug_description(
     # Add district name(s)
     try:
         district = eval(row["district"])
-    except NameError:
+    except (NameError, SyntaxError):
         district = row["district"]
     if district:
         prgph.add_run("Sie befindet sich innerhalb ")
-- 
GitLab