Skip to content

Fix bug: update Zenodo downloader for new API #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restore unrelated line
  • Loading branch information
santisoler committed Oct 17, 2023
commit de956d5001c8ddb843e7b58f79755f52bef40808
3 changes: 1 addition & 2 deletions pooch/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,7 @@ def download_url(self, file_name):
files = {item["name"]: item for item in self.api_response}
if file_name not in files:
raise ValueError(
f"File '{file_name}' not found in data archive "
f"{self.archive_url} (doi:{self.doi})."
f"File '{file_name}' not found in data archive {self.archive_url} (doi:{self.doi})."
)
download_url = files[file_name]["download_url"]
return download_url
Expand Down