Skip to content

Commit

Permalink
Shorten line with error message
Browse files Browse the repository at this point in the history
  • Loading branch information
santisoler committed Oct 17, 2023
1 parent ddfc2b2 commit c6be96a
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit c6be96a

Please sign in to comment.