summaryrefslogtreecommitdiffstats
path: root/mediaproxy
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-17 12:29:48 -0700
committerAndrew Godwin2022-12-17 12:29:48 -0700
commit24a4fbe1f820e6ce13a969f39dd7676894987532 (patch)
treeb88da273407e997e07b519375b1a9e0e6262c663 /mediaproxy
parent1f28361fd9fe7f73b966f5b1c6e36248ce8114b4 (diff)
downloadtakahe-24a4fbe1f820e6ce13a969f39dd7676894987532.tar.gz
takahe-24a4fbe1f820e6ce13a969f39dd7676894987532.tar.bz2
takahe-24a4fbe1f820e6ce13a969f39dd7676894987532.zip
Catch all possible request errors
Diffstat (limited to 'mediaproxy')
-rw-r--r--mediaproxy/views.py2
1 files changed, 1 insertions, 1 deletions
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)