diff options
author | Andrew Godwin | 2022-12-17 12:29:48 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-17 12:29:48 -0700 |
commit | 24a4fbe1f820e6ce13a969f39dd7676894987532 (patch) | |
tree | b88da273407e997e07b519375b1a9e0e6262c663 /mediaproxy | |
parent | 1f28361fd9fe7f73b966f5b1c6e36248ce8114b4 (diff) | |
download | takahe-24a4fbe1f820e6ce13a969f39dd7676894987532.tar.gz takahe-24a4fbe1f820e6ce13a969f39dd7676894987532.tar.bz2 takahe-24a4fbe1f820e6ce13a969f39dd7676894987532.zip |
Catch all possible request errors
Diffstat (limited to 'mediaproxy')
-rw-r--r-- | mediaproxy/views.py | 2 |
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) |