Skip to content

Commit

Permalink
Merge pull request #64 from skalenetwork/hotfix/add-request-timeout
Browse files Browse the repository at this point in the history
Add timeout to request.head
  • Loading branch information
dmytrotkk authored May 16, 2024
2 parents 90cc5c4 + 101d507 commit f2e6ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def url_ok(url) -> bool:
try:
r = requests.head(url, timeout=10)
return bool(r.status_code)
except requests.exceptions.ConnectionError:
except requests.exceptions.RequestException:
return False


Expand Down

0 comments on commit f2e6ebf

Please sign in to comment.