Skip to content
Snippets Groups Projects
Commit 63ca5b50 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

sourceforge: Catch correct ConnectionError exception

parent a8871bd4
No related branches found
No related tags found
No related merge requests found
Pipeline #11938 passed
......@@ -336,7 +336,7 @@ class SourceForgeLister(Lister[SourceForgeListerState, SourceForgeListerPage]):
try:
res = self.http_request(endpoint).json()
except (requests.HTTPError, ConnectionError):
except (requests.HTTPError, requests.exceptions.ConnectionError):
# We've already logged in `http_request`
return []
......@@ -358,7 +358,7 @@ class SourceForgeLister(Lister[SourceForgeListerState, SourceForgeListerPage]):
cvs_info_url = f"http://{project}.cvs.sourceforge.net"
try:
response = self.http_request(cvs_info_url)
except (requests.HTTPError, ConnectionError):
except (requests.HTTPError, requests.exceptions.ConnectionError):
logger.warning(
"CVS info page could not be fetched, skipping project '%s'",
project,
......@@ -420,7 +420,7 @@ class SourceForgeLister(Lister[SourceForgeListerState, SourceForgeListerPage]):
)
)
continue
except (requests.HTTPError, ConnectionError):
except (requests.HTTPError, requests.exceptions.ConnectionError):
logger.warning(
"Bazaar repository page could not be fetched, skipping project '%s'",
project,
......
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