Skip to content

Commit

Permalink
use yaml safe_load instead of json.loads for yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 committed May 25, 2023
1 parent 646fea5 commit 264b914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biothings/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ def get_plugin_name_from_remote_manifest(url):
manifest_json = json.loads(response.text)
except Exception:
response = requests.get(url=manifest_yaml_url)
manifest_json = json.loads(response.text)
manifest_json = yaml.safe_load(response.text)
finally:
name = manifest_json.get("name", name)
return name
Expand Down

0 comments on commit 264b914

Please sign in to comment.