maven: log error message when not able to retrieve the index to read
Without this, the lister legitimately cannot list anything.
This commit is contained in:
parent
0e0901acdc
commit
e4b27a1e98
1 changed files with 4 additions and 2 deletions
|
@ -148,10 +148,12 @@ class MavenLister(Lister[MavenListerState, RepoPage]):
|
|||
# ]
|
||||
|
||||
# Download the main text index file.
|
||||
logger.info("Downloading text index from %s.", self.INDEX_URL)
|
||||
logger.info("Downloading computed index from %s.", self.INDEX_URL)
|
||||
assert self.INDEX_URL is not None
|
||||
response = requests.get(self.INDEX_URL, stream=True)
|
||||
response.raise_for_status()
|
||||
if response.status_code != 200:
|
||||
logger.error("Index %s not found, stopping", self.INDEX_URL)
|
||||
response.raise_for_status()
|
||||
|
||||
# Prepare regexes to parse index exports.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue