From ed3faa30c9f3fea2e8bfdab4280f745855f9b37e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9r=C3=A9nice=20Batut?= Date: Tue, 31 Oct 2023 12:58:53 +0100 Subject: [PATCH] Fix a function call and verify to False for bio.tools API --- bin/extract_galaxy_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/extract_galaxy_tools.py b/bin/extract_galaxy_tools.py index 09d4d44f..e28449ac 100644 --- a/bin/extract_galaxy_tools.py +++ b/bin/extract_galaxy_tools.py @@ -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: @@ -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: