Skip to content

Commit

Permalink
Bypass the certificate check for pseudo dojo. (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minotakm authored Dec 20, 2024
1 parent 9b29ae7 commit ac84418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aiida_pseudo/cli/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac84418

Please sign in to comment.