Skip to content

Commit

Permalink
small fix in json load
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpxchg16 committed Apr 10, 2024
1 parent afa68da commit ae4b3c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vibraniumdome-shields/vibraniumdome_shields/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ def safe_loads_dictionary_string(dictionary_string: str = ""):


def safe_loads_json(json_string: str):
parsed_json = {}
try:
parsed_json = json.loads(json_string)
except json.JSONDecodeError:
logger.warn("json_string could not be parser: %s", json_string)
parsed_json = {}
except Exception:
logger.warn("json_string could not be parsed: %s", json_string)
return parsed_json


Expand Down

0 comments on commit ae4b3c8

Please sign in to comment.