Skip to content

Commit

Permalink
FIX: Allow redirects in GET request
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Aug 18, 2020
1 parent 003c889 commit ab17865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templateflow/conf/_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ def _get_skeleton_file():
import requests

try:
r = requests.get(TF_SKEL_URL(release="master", ext="md5", allow_redirects=True))
r = requests.get(TF_SKEL_URL(release="master", ext="md5"), allow_redirects=True)
except requests.exceptions.ConnectionError:
return

if not r.ok:
return

if r.content.decode().split()[0] != TF_SKEL_MD5:
r = requests.get(TF_SKEL_URL(release="master", ext="zip", allow_redirects=True))
r = requests.get(TF_SKEL_URL(release="master", ext="zip"), allow_redirects=True)
if r.ok:
from os import close

Expand Down

0 comments on commit ab17865

Please sign in to comment.