Skip to content

Commit

Permalink
Merge pull request #2043 from openoereb/1875-add-timeout
Browse files Browse the repository at this point in the history
add-timout-in-address-source
  • Loading branch information
svamaa authored Aug 29, 2024
2 parents ec86cb5 + d0e2a57 commit 0ba10cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyramid_oereb/contrib/data_sources/swisstopo/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0ba10cc

Please sign in to comment.