From 92e46a066ac3cea215ff916226f57dfbda5bb504 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 8 Oct 2022 21:17:19 +0300
Subject: [PATCH] Set timeout for requests.

So that prospector will be happy.
---
 src/utils.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/utils.py b/src/utils.py
index c89283e..441289c 100644
--- a/src/utils.py
+++ b/src/utils.py
@@ -49,7 +49,10 @@ class CheckURL(Check):
         """Checks validaty of a URL."""
         try:
             response = requests.request(
-                self._method, self._url, allow_redirects=False
+                self._method,
+                self._url,
+                allow_redirects=False,
+                timeout=30,
             )
             return (
                 response.status_code in self._valid_codes,
-- 
GitLab