changeset 114:5099d45c7730

output ini_path on error
author Jeff Hammel <k0scist@gmail.com>
date Mon, 03 Jun 2024 09:29:38 -0700
parents cc54fa8065c5
children a8613e4c51dc
files decoupage/web.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/decoupage/web.py	Wed Nov 25 10:52:36 2020 -0800
+++ b/decoupage/web.py	Mon Jun 03 09:29:38 2024 -0700
@@ -353,7 +353,11 @@
         # local configuration
         ini_path = os.path.join(directory, 'index.ini')
         if os.path.exists(ini_path):
-            _conf = ConfigMunger(ini_path).dict()
+            try:
+                _conf = ConfigMunger(ini_path).dict()
+            except Exception as e:
+                print(f"Error reading INI {ini_path}: {e}")
+                raise
             if len(_conf) == 1:
                 conf = _conf[list(_conf.keys())[0]].copy()