Commit 92e46a06 authored by nimrod's avatar nimrod
Browse files

Set timeout for requests.

So that prospector will be happy.
parent 2270a2d4
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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,