Skip to content

Commit 9c5fdba

Browse files
author
Benjamin Moody
committed
dl_full_file: use _get_url in place of requests.get.
Note that this will handle errors (e.g. a file that does not exist) and raise an exception, rather than writing the error document to the output file.
1 parent c0a6a41 commit 9c5fdba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wfdb/io/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@ def dl_full_file(url, save_file_name):
484484
N/A
485485
486486
"""
487-
response = requests.get(url)
487+
content = _get_url(url)
488488
with open(save_file_name, 'wb') as writefile:
489-
writefile.write(response.content)
489+
writefile.write(content)
490490

491491
return
492492

0 commit comments

Comments
 (0)