Skip to content

Commit

Permalink
grass.script: Fix missing passing of env parameter
Browse files Browse the repository at this point in the history
The original change in PR OSGeo#3439 has None instead of env passed to the error function in the fatal function. This passes the env parameter.
  • Loading branch information
wenzeslaus committed May 3, 2024
1 parent a351e5e commit c9fa6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/grass/script/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit c9fa6b8

Please sign in to comment.