Skip to content

Commit 6b93950

Browse files
author
Benjamin Moody
committed
dl_files: use openurl in place of requests.head.
1 parent 95f4822 commit 6b93950

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wfdb/io/download.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,7 @@ def dl_files(db, dl_dir, files, keep_subdirs=True, overwrite=False):
526526
db_url = posixpath.join(PN_CONTENT_URL, db_dir) + '/'
527527

528528
# Check if the database is valid
529-
response = requests.head(db_url)
530-
response.raise_for_status()
529+
_url.openurl(db_url, check_access=True)
531530

532531
# Construct the urls to download
533532
dl_inputs = [(os.path.split(file)[1], os.path.split(file)[0], db_dir, dl_dir, keep_subdirs, overwrite) for file in files]

0 commit comments

Comments
 (0)