From c9fa6b86cfed719463259ecac49af4c4187207a3 Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Fri, 3 May 2024 14:22:27 -0400 Subject: [PATCH] grass.script: Fix missing passing of env parameter The original change in PR #3439 has None instead of env passed to the error function in the fatal function. This passes the env parameter. --- python/grass/script/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/grass/script/core.py b/python/grass/script/core.py index 64355616954..b1c70973cb2 100644 --- a/python/grass/script/core.py +++ b/python/grass/script/core.py @@ -766,7 +766,7 @@ def fatal(msg, env=None): if raise_on_error: raise ScriptError(msg) - error(msg, env=None) + error(msg, env=env) sys.exit(1)