Error in formula or condition in salary slip

Error while evaluating the Salary Structure salary at row 2.

Error: cannot import name ‘UNSAFE_ATTRIBUTES’ from ‘frappe.utils.safe_exec’ (/home/frappe/frappe-bench/apps/frappe/frappe/utils/safe_exec.py)

Hint: This error can be due to invalid formula or condition.