Skip to content

Commit

Permalink
EKIR-209 Add bigger timeout for loans
Browse files Browse the repository at this point in the history
  • Loading branch information
natlibfi-kaisa committed Jul 18, 2024
1 parent a519597 commit 41f0537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/odl.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def _get(self, url: str, headers: dict[str, str] | None = None) -> Response:
auth_header = "Basic %s" % base64.b64encode(f"{username}:{password}")
headers["Authorization"] = auth_header

return HTTP.get_with_timeout(url, headers=headers)
return HTTP.get_with_timeout(url, headers=headers, timeout=30) # Added a bigger timeout for loan checkouts

def _url_for(self, *args: Any, **kwargs: Any) -> str:
"""Wrapper around flask's url_for to be overridden for tests."""
Expand Down

0 comments on commit 41f0537

Please sign in to comment.