Skip to content

Commit

Permalink
Merge pull request #110 from stat-kwon/master
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
stat-kwon authored Nov 5, 2024
2 parents 8fad445 + 94d2d4e commit b027d77
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 b027d77

Please sign in to comment.