mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Enable ruff S113 rule (#11375)
* Enable ruff S113 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -42,7 +42,7 @@ def fetch_pharmacy_and_price_list(drug_name: str, zip_code: str) -> list | None:
|
||||
return None
|
||||
|
||||
request_url = BASE_URL.format(drug_name, zip_code)
|
||||
response = get(request_url)
|
||||
response = get(request_url, timeout=10)
|
||||
|
||||
# Is the response ok?
|
||||
response.raise_for_status()
|
||||
|
Reference in New Issue
Block a user