We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ad6ebc + 666d429 commit 397746eCopy full SHA for 397746e
1 file changed
activity_browser/utils.py
@@ -53,7 +53,7 @@ def safe_link_fetch(url: str) -> Tuple[object, object]:
53
object: response if no error, otherwise None
54
"""
55
try:
56
- response = requests.get(url) # retrieve the page from the URL
+ response = requests.get(url, timeout=2) # retrieve the page from the URL
57
response.raise_for_status()
58
except Exception as error:
59
return (None, error)
0 commit comments