diff --git a/app/utils/sites.py b/app/utils/sites.py index 7111530..c65708f 100644 --- a/app/utils/sites.py +++ b/app/utils/sites.py @@ -12,7 +12,7 @@ def get_token(api_url: str, login: str, pwd: str) -> str: - response = requests.post(f"{api_url}/login/access-token", data={"username": login, "password": pwd}, timeout=3) + response = requests.post(f"{api_url}/login/access-token", data={"username": login, "password": pwd}, timeout=10) if response.status_code != 200: raise ValueError(response.json()["detail"]) return response.json()["access_token"]