Skip to content

Commit

Permalink
Fix a function call and verify to False for bio.tools API
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut committed Oct 31, 2023
1 parent db1bfaf commit ed3faa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/extract_galaxy_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def get_tool_metadata(tool, repo):
metadata["Status"] = "Up-to-date"
# get bio.tool information
if metadata["bio.tool id"] is not None:
r = requests.get(f'{BIOTOOLS_API_URL}/api/tool/{metadata["bio.tool id"]}/?format=json')
r = requests.get(f'{BIOTOOLS_API_URL}/api/tool/{metadata["bio.tool id"]}/?format=json', verify=False)
if r.status_code == requests.codes.ok:
biotool_info = r.json()
if "function" in biotool_info:
Expand Down Expand Up @@ -319,7 +319,7 @@ def parse_tools(repo):
file_list = repo.get_contents(tool.path)
assert isinstance(file_list, list)
for content in file_list:
metadata = get_tool_metadata(content, repo, ts_cat, excluded_tools, keep_tools)
metadata = get_tool_metadata(content, repo)
if metadata is not None:
tools.append(metadata)
else:
Expand Down

0 comments on commit ed3faa3

Please sign in to comment.