Improve error message by providing the name of the env file (#3964)

Co-authored-by: k-boikov <64261260+k-boikov@users.noreply.github.com>
pull/4082/head^2
Boostrix 2023-05-16 01:26:13 +02:00 committed by GitHub
parent cf35112291
commit 3c80e05e00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def execute_python_file(filename: str) -> str:
CFG.execute_local_commands,
"You are not allowed to run local shell commands. To execute"
" shell commands, EXECUTE_LOCAL_COMMANDS must be set to 'True' "
"in your config. Do not attempt to bypass the restriction.",
"in your config file: .env - do not attempt to bypass the restriction.",
)
def execute_shell(command_line: str) -> str:
"""Execute a shell command and return the output