Skip to content

Commit

Permalink
Hide error or extra debug in shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Jan 5, 2024
1 parent 72694c3 commit 2ef4bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terrariumUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def get_script_data(script):
logger.debug("Running script: %s." % (script))
# Add python virtual env to PATH to make sure that venv is being used for python
data = subprocess.check_output(
script, shell=True, env={**os.environ, "PATH": f"{sys.prefix}/bin:" + os.environ["PATH"]}
f"{script} 2>/dev/null", shell=True, env={**os.environ, "PATH": f"{sys.prefix}/bin:" + os.environ["PATH"]}
)
logger.debug("Output was: %s." % (data))
except Exception as ex:
Expand Down

0 comments on commit 2ef4bb3

Please sign in to comment.