From ae524332efbaa59f512e46a4e61bcf2543c93219 Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Tue, 27 Aug 2024 16:17:11 +0800 Subject: [PATCH] NEED CONFIRM: turn on SSL certificate check --- src/pymatgen/io/vasp/help.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pymatgen/io/vasp/help.py b/src/pymatgen/io/vasp/help.py index 0bc29497bda..4540645fcef 100644 --- a/src/pymatgen/io/vasp/help.py +++ b/src/pymatgen/io/vasp/help.py @@ -55,7 +55,6 @@ def get_help(cls, tag: str, fmt: str = "text") -> str: tag = tag.upper() response = requests.get( f"https://www.vasp.at/wiki/index.php/{tag}", - verify=False, # noqa: S501 timeout=600, ) soup = BeautifulSoup(response.text) @@ -74,7 +73,7 @@ def get_incar_tags(cls) -> list[str]: "https://www.vasp.at/wiki/index.php/Category:INCAR", "https://www.vasp.at/wiki/index.php?title=Category:INCAR&pagefrom=ML+FF+LCONF+DISCARD#mw-pages", ): - response = requests.get(page, verify=False, timeout=600) # noqa: S501 + response = requests.get(page, timeout=600) soup = BeautifulSoup(response.text) for div in soup.findAll("div", {"class": "mw-category-group"}): children = div.findChildren("li")