aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/yr.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/yr.py')
-rw-r--r--scripts/yr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/yr.py b/scripts/yr.py
index 9c3ae5e..3a6c8a7 100644
--- a/scripts/yr.py
+++ b/scripts/yr.py
@@ -26,13 +26,13 @@ try:
'Cache-Control': 'no-cache',
}
- response = requests.get(url, headers=hdr)
+ response = requests.get(url, headers=hdr, timeout=10)
if response.status_code != 200:
print(response.status_code)
print("Oh shit")
response.raise_for_status()
-except Exception as e:
+except requests.exceptions.RequestException as e:
print("oh lol")
sys.exit(e)