From d0e2a571240f512f73a697f6b51aba68e8c592a0 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Tue, 27 Aug 2024 17:06:14 +0200 Subject: [PATCH] add timeout of 4s in request --- pyramid_oereb/contrib/data_sources/swisstopo/address.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyramid_oereb/contrib/data_sources/swisstopo/address.py b/pyramid_oereb/contrib/data_sources/swisstopo/address.py index 317fb0ea8b..92b62de8a8 100644 --- a/pyramid_oereb/contrib/data_sources/swisstopo/address.py +++ b/pyramid_oereb/contrib/data_sources/swisstopo/address.py @@ -61,7 +61,8 @@ def read(self, params, street_name, zip_code, street_number): self._geoadmin_url, params=request_params, proxies=self._proxies, - headers=headers + headers=headers, + timeout=4 ) if response.status_code == requests.codes.ok: rp = Reprojector()