Skip to content

Commit

Permalink
feat: set requests timeout to 12 when we populate RemoteContacts voca…
Browse files Browse the repository at this point in the history
…bulary (#55)

WEB-4144
  • Loading branch information
remdub authored Sep 12, 2024
1 parent 1871cf9 commit 69e1d41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
1.2.70 (unreleased)
-------------------

- Nothing changed yet.
- WEB-4144 : Set requests timeout to 12 when we populate RemoteContacts vocabulary
[remdub]


1.2.69 (2024-09-10)
Expand Down
2 changes: 1 addition & 1 deletion src/imio/smartweb/core/vocabularies.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def __call__(self, context=None):
"metadata_fields=breadcrumb",
]
url = "{}/@search?{}".format(DIRECTORY_URL, "&".join(params))
json_contacts = get_json(url, None, 8)
json_contacts = get_json(url, None, 12)
if json_contacts is None or len(json_contacts.get("items", [])) == 0:
return SimpleVocabulary([])
return SimpleVocabulary(
Expand Down

0 comments on commit 69e1d41

Please sign in to comment.