Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: seolmin <[email protected]>
  • Loading branch information
stat-kwon committed Nov 5, 2024
1 parent 73b4eb7 commit 94d2d4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/spaceone/dashboard/manager/data_table_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94d2d4e

Please sign in to comment.