fix: handle empty JSON String in Template loading (#8200)
Merge branch 'main' into feat-new-tavily-bundle
This commit is contained in:
parent
a5ce562299
commit
f73ba66094
1 changed files with 2 additions and 0 deletions
|
|
@ -149,6 +149,8 @@ def update_projects_components_with_latest_component_versions(project_data, all_
|
||||||
|
|
||||||
|
|
||||||
def scape_json_parse(json_string: str) -> dict:
|
def scape_json_parse(json_string: str) -> dict:
|
||||||
|
if json_string is None:
|
||||||
|
return {}
|
||||||
if isinstance(json_string, dict):
|
if isinstance(json_string, dict):
|
||||||
return json_string
|
return json_string
|
||||||
parsed_string = json_string.replace("œ", '"')
|
parsed_string = json_string.replace("œ", '"')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue