From 3e9a1864dc35062cab8aa1dec0e6a80a3b754112 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Tue, 21 Sep 2021 11:05:20 +0200 Subject: [PATCH 41/59] misc: fix eval-used pylint error (#56982) --- src/authentic2/utils/evaluate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/utils/evaluate.py b/src/authentic2/utils/evaluate.py index 2f098a3f..cc03acfd 100644 --- a/src/authentic2/utils/evaluate.py +++ b/src/authentic2/utils/evaluate.py @@ -215,7 +215,7 @@ def evaluate_condition(expression, ctx=None, validator=None, on_raise=None): try: code = (validator or validate_condition)(expression) try: - return eval(code, condition_safe_globals, ctx or {}) + return eval(code, condition_safe_globals, ctx or {}) # pylint: disable=eval-used except NameError as e: # NameError does not report the column of the name reference :/ raise ExpressionError( -- 2.30.2