Skip to content

Commit 79572ec

Browse files
author
Fredrik Fristedt
authored
Catch the ConnectionError exception from requests (#105)
1 parent d62c72a commit 79572ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/iut_provider/utilities/external_provider.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ def wait(self, provider_id: str) -> dict:
230230
)
231231
self.check_error(response)
232232
response = response.json()
233+
except RequestsConnectionError as error:
234+
self.logger.error("Error connecting to %r: %r", host, error)
235+
continue
233236
except ConnectionError:
234237
self.logger.error("Error connecting to %r", host)
235238
continue

0 commit comments

Comments
 (0)