Skip to content

Commit

Permalink
Merge pull request pyne#11 from Shimwell/jendl_bug_fix
Browse files Browse the repository at this point in the history
added ssl context to download
  • Loading branch information
paulromano authored Aug 19, 2019
2 parents de8677a + fd3ab72 commit 58385f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate_jendl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import argparse
import glob
import os
import ssl
import sys
import tarfile

Expand Down Expand Up @@ -77,7 +78,8 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter,
for f in release_details[args.release]['files']:
# Establish connection to URL
url = release_details[args.release]['base_url'] + f
downloaded_file = download(url)
downloaded_file = download(url,
context=ssl._create_unverified_context())
files_complete.append(downloaded_file)

# ==============================================================================
Expand Down

0 comments on commit 58385f3

Please sign in to comment.