From ac84418d3fe28415d0535856ecbaa551962ccf86 Mon Sep 17 00:00:00 2001 From: Michail Minotakis Date: Fri, 20 Dec 2024 15:20:42 +0100 Subject: [PATCH] Bypass the certificate check for pseudo dojo. (#179) --- src/aiida_pseudo/cli/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aiida_pseudo/cli/install.py b/src/aiida_pseudo/cli/install.py index 61d51ce..a060c58 100644 --- a/src/aiida_pseudo/cli/install.py +++ b/src/aiida_pseudo/cli/install.py @@ -313,14 +313,14 @@ def download_pseudo_dojo( url_metadata = PseudoDojoFamily.get_url_metadata(label) with attempt('downloading selected pseudopotentials archive... ', include_traceback=traceback): - response = requests.get(url_archive, timeout=30) + response = requests.get(url_archive, timeout=30, verify=False) response.raise_for_status() with open(filepath_archive, 'wb') as handle: handle.write(response.content) handle.flush() with attempt('downloading selected pseudopotentials metadata archive... ', include_traceback=traceback): - response = requests.get(url_metadata, timeout=30) + response = requests.get(url_metadata, timeout=30, verify=False) response.raise_for_status() with open(filepath_metadata, 'wb') as handle: handle.write(response.content)