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 --- mediaproxy/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mediaproxy') diff --git a/mediaproxy/views.py b/mediaproxy/views.py index 4fc09b1..7e16e04 100644 --- a/mediaproxy/views.py +++ b/mediaproxy/views.py @@ -33,7 +33,7 @@ class BaseCacheView(View): follow_redirects=True, timeout=settings.SETUP.REMOTE_TIMEOUT, ) - except (httpx.ConnectError, httpx.RequestError): + except httpx.RequestError: return HttpResponse(status=502) if remote_response.status_code >= 400: return HttpResponse(status=502) -- cgit v1.2.3