From 24a4fbe1f820e6ce13a969f39dd7676894987532 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 17 Dec 2022 12:29:48 -0700 Subject: Catch all possible request errors --- activities/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activities/search.py') diff --git a/activities/search.py b/activities/search.py index e192b94..5a43156 100644 --- a/activities/search.py +++ b/activities/search.py @@ -74,7 +74,7 @@ class Searcher: method="get", uri=self.query, ) - except (httpx.RequestError, httpx.ConnectError): + except httpx.RequestError: return None if response.status_code >= 400: return None -- cgit v1.2.3