Skip to content

Commit c7c27b0

Browse files
authored
Merge pull request #234 from righettod/master
Fune error handling
2 parents ef96c8f + 472ed20 commit c7c27b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/monitoring_oshp_site_references.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ def print_github_error(site_url, oshp_is_mentioned):
6868
for site_url in site_urls:
6969
if site_url.strip().startswith("http"):
7070
oshp_is_mentioned = "NO"
71+
print(f"=> Checking '{site_url}'")
7172
for _ in range(0, MAX_RETRY):
7273
try:
7374
oshp_is_mentioned = verify_mention(site_url)
7475
if oshp_is_mentioned in valid_mentions:
7576
break
7677
else:
7778
time.sleep(WAIT_DELAY_SECONDS)
78-
except requests.exceptions.Timeout:
79+
except (requests.exceptions.Timeout, requests.exceptions.ConnectionError):
7980
oshp_is_mentioned = "IO_ERROR"
8081
time.sleep(WAIT_DELAY_SECONDS)
8182
pass

0 commit comments

Comments
 (0)