From 3f233beea0ca8b0061d2c0cc22a6b3577ad841a4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 11 Aug 2026 15:40:04 +0000 Subject: [PATCH] njalla.nix: fail on ImportError; fix redundant except clause Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- modules/core/njalla.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/njalla.nix b/modules/core/njalla.nix index 37a877b..5331159 100644 --- a/modules/core/njalla.nix +++ b/modules/core/njalla.nix @@ -76,7 +76,7 @@ sys.path.insert(0, '/etc/sovran') try: from security_helpers import _validate_ddns_url except ImportError: - sys.exit(0) # validator not available — skip silently + sys.exit(1) # validator missing — fail so systemd logs the misconfiguration URLS_FILE = "/var/lib/njalla/ddns_urls.json" @@ -116,7 +116,7 @@ for raw_url in urls: timeout=20, check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, ) - except (ValueError, Exception): + except Exception: pass PYEOF chmod 0500 /var/lib/sovran/ddns-update.py