Skip to content
Snippets Groups Projects
Commit c92d7a67 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

modify PFAM ws client to use HTTP instead of HTTPS

otherwise SSL handshake fails with requests.
parent 239b7f8c
No related branches found
No related tags found
No related merge requests found
......@@ -350,7 +350,7 @@ def get_pfam_info(pfam_acc: str) -> dict:
:return: Protein family metadata (id, description).
:rtype: dict
"""
resp = requests.get("https://pfam.xfam.org/family/{}?output=xml".format(pfam_acc))
resp = requests.get("http://pfam.xfam.org/family/{}?output=xml".format(pfam_acc))
root = ET.fromstring(resp.text)
ns = {"pfam": "https://pfam.xfam.org/"}
entry = root.findall("pfam:entry", ns)[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment