fix: use vanilla eval
This commit is contained in:
parent
eede56d5df
commit
fd740b780b
1 changed files with 2 additions and 3 deletions
|
|
@ -254,9 +254,8 @@ def execute(context, method, args=None, kwargs=None, profile=False):
|
|||
try:
|
||||
ret = frappe.get_attr(method)(*args, **kwargs)
|
||||
except Exception:
|
||||
ret = frappe.safe_eval(
|
||||
method + "(*args, **kwargs)", eval_globals=globals(), eval_locals=locals()
|
||||
)
|
||||
# eval is safe here because input is from console
|
||||
ret = eval(method + "(*args, **kwargs)", globals(), locals()) # nosemgrep
|
||||
|
||||
if profile:
|
||||
import pstats
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue