From dd838aae3ee1ffc11a14c264af969b25c13cbc22 Mon Sep 17 00:00:00 2001 From: Watchful1 Date: Tue, 29 Aug 2023 20:49:42 -0700 Subject: [PATCH] Wrong exception --- personal/combine/build_day.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/personal/combine/build_day.py b/personal/combine/build_day.py index ac1c6ff..1126b06 100644 --- a/personal/combine/build_day.py +++ b/personal/combine/build_day.py @@ -35,7 +35,7 @@ def query_pushshift(ids, bearer, object_type): response = requests.get(url, headers={ 'User-Agent': "In script by /u/Watchful1", 'Authorization': f"Bearer {bearer}"}, timeout=15) - except (ConnectionError, requests.exceptions.ReadTimeout): + except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout): time.sleep(2) continue if response.status_code == 200: