mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-05 04:08:21 +02:00
changed compile filename from <string> to <safe_eval> for the errors
This commit is contained in:
parent
cd13753960
commit
e4ea183c7f
1 changed files with 1 additions and 1 deletions
|
@ -116,4 +116,4 @@ def safe_eval(template: str, env: dict[str, any] = None, macros: dict[str, str]
|
|||
ast.fix_missing_locations(expression)
|
||||
|
||||
# return the evaluated formula
|
||||
return eval(compile(expression, "<string>", "eval"), globals_, locals_)
|
||||
return eval(compile(expression, "<safe_eval>", "eval"), globals_, locals_)
|
||||
|
|
Loading…
Reference in a new issue