From d9cc2f30121b59e2cc2fbc25cd8e8e3413332b52 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 15 Aug 2026 00:02:17 +0200 Subject: [PATCH] lib.App: Pass None default to os.getenv() The os.getenv() calls in __init__() that read the log and backtrace defaults mostly pass None as the explicit default value, but the one for the show-backtrace environment variable relies on the implicit default. Pass None explicitly there as well, so that all the calls read the same way. Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2 Signed-off-by: Jan Lindemann --- src/python/jw/pkg/lib/App.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/jw/pkg/lib/App.py b/src/python/jw/pkg/lib/App.py index 25faf496..ebd3fd6d 100644 --- a/src/python/jw/pkg/lib/App.py +++ b/src/python/jw/pkg/lib/App.py @@ -131,7 +131,7 @@ class App: # export self.__default_log_file = env self.__back_trace = self._default_show_backtrace(False) - if (env := os.getenv(self._default_show_backtrace_env())) is not None: + if (env := os.getenv(self._default_show_backtrace_env(), None)) is not None: self.__back_trace = env.lower() in ['1', 'true'] set_log_flags(self.__default_log_flags)