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
Shorten line with error message
  • Loading branch information
santisoler committed Oct 17, 2023
commit c6be96a51409efde95e20bb9460875e763c2a6bd
3 changes: 2 additions & 1 deletion pooch/downloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,8 @@ def download_url(self, file_name):
filenames = [item["filename"] for item in self.api_response["files"]]
if file_name not in filenames:
raise ValueError(
f"File '{file_name}' not found in data archive {self.archive_url} (doi:{self.doi})."
f"File '{file_name}' not found in data archive "
f"{self.archive_url} (doi:{self.doi})."
)
# Build download url
article_id = self.api_response["id"]
Expand Down