Skip to content
Snippets Groups Projects
Verified Commit 8f5b10b3 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

gitlab.lister: Break asap when problem exists during fetch info

Prior to this, when wrong url injection happens, no information is
fetched because we have bad input in the first place (404, 400).  This
makes the debugging session quite hard.
parent ae514a84
No related branches found
Tags v0.0.18
No related merge requests found
......@@ -110,6 +110,9 @@ class GitLabLister(PageByPageHttpLister):
"""
response = self.transport_head(identifier=1)
if not response.ok:
raise ValueError(
'Problem during information fetch: %s' % response.status_code)
h = response.headers
return (self._get_int(h, 'x-total'),
self._get_int(h, 'x-total-pages'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment