summaryrefslogtreecommitdiff
path: root/searxng_extra/update/update_currencies.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-11-29 14:41:48 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-11-29 14:50:17 +0100
commit605f38b3521fa803a6d7c09dcf474262008e698c (patch)
treecb59426f6677cbaa465d842210e41303ddccdaf0 /searxng_extra/update/update_currencies.py
parent2717ffd0943e556795e43e2ff61b5e4f61838f66 (diff)
downloadsearxng-605f38b3521fa803a6d7c09dcf474262008e698c.tar.gz
searxng-605f38b3521fa803a6d7c09dcf474262008e698c.zip
[fix] update_currencies.py: github CI has longer timeouts
Github action Update data - update_currencies [1]: ./manage pyenv.cmd python ./searxng_extra/update/update_currencies.py fails with ``httpcore.ReadTimeout`` / the default timeout is 3sec. [1] https://github.com/searxng/searxng/actions/runs/12076864366/job/33703464399 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searxng_extra/update/update_currencies.py')
-rwxr-xr-xsearxng_extra/update/update_currencies.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searxng_extra/update/update_currencies.py b/searxng_extra/update/update_currencies.py
index dcfa6e7a2..3cadcfe86 100755
--- a/searxng_extra/update/update_currencies.py
+++ b/searxng_extra/update/update_currencies.py
@@ -92,6 +92,7 @@ def add_currency_label(db, label, iso4217, language):
def wikidata_request_result_iterator(request):
+ wikidata.timeout = 30 # github CI has longer timeouts
result = wikidata.send_wikidata_query(request.replace('%LANGUAGES_SPARQL%', LANGUAGES_SPARQL))
if result is not None:
yield from result['results']['bindings']