From 94d2d4eac33130151a4e72d1ac6d9b29f80f300a Mon Sep 17 00:00:00 2001 From: seolmin Date: Tue, 5 Nov 2024 21:58:27 +0900 Subject: [PATCH] fix: fix typo Signed-off-by: seolmin --- .../dashboard/manager/data_table_manager/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/spaceone/dashboard/manager/data_table_manager/__init__.py b/src/spaceone/dashboard/manager/data_table_manager/__init__.py index 12d52cf..f877f44 100644 --- a/src/spaceone/dashboard/manager/data_table_manager/__init__.py +++ b/src/spaceone/dashboard/manager/data_table_manager/__init__.py @@ -380,6 +380,11 @@ def remove_jinja_braces(expression: str) -> Union[str, float, list]: index_str = index_str.replace("[", "").replace("]", "") index = int(index_str) expression = ast.literal_eval(dict_expression)[index] + try: + expression = ast.literal_eval(expression) + except Exception as e: + _LOGGER.error(f"Error: {e}") + expression = expression return expression @staticmethod