Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvin-M committed Mar 4, 2020
1 parent 84c40c6 commit edeb7cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/substrapp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ def get_remote_file(url, auth, content_dst_path=None, **kwargs):
response.raise_for_status()

with open(content_dst_path, 'wb') as fp:
for chunk in response.iter_content(chunk_size):
if chunk: # filter out keep-alive new chunks
fp.write(chunk)
fp.writelines(response.iter_content(chunk_size))
else:
response = requests.get(url, **kwargs)
except (requests.exceptions.ConnectionError, requests.exceptions.Timeout) as e:
Expand Down

0 comments on commit edeb7cc

Please sign in to comment.