Skip to content

Commit 186d642

Browse files
committed
Added check to verify invalid release
Signed-off-by: KeerthanaAP <[email protected]>
1 parent b77856e commit 186d642

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

monitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def fetch_release_date(release):
3131
break
3232
return start_date
3333
else:
34-
return "failed to get the release page"
34+
print(f"Failed to get the release page. {response.text}")
35+
sys.exit(1)
3536
except requests.Timeout as e:
3637
return "Request timed out"
3738
except requests.RequestException as e:

0 commit comments

Comments
 (0)