From b5d0b5018310cc463e469a75d3e5d98333c64139 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 17 Aug 2023 17:43:25 +0200 Subject: [PATCH] Catch timeout error in ajax proxy --- umap/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/umap/views.py b/umap/views.py index 4e667cc5..d7477cbc 100644 --- a/umap/views.py +++ b/umap/views.py @@ -343,6 +343,8 @@ class AjaxProxy(View): return HttpResponseBadRequest("URL error") except InvalidURL: return HttpResponseBadRequest("Invalid URL") + except TimeoutError: + return HttpResponseBadRequest("Timeout") else: status_code = proxied_request.code mimetype = proxied_request.headers.get(