mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +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:
@ -25,7 +25,7 @@ def get_openlibrary_data(olid: str = "isbn/0140328726") -> dict:
|
||||
if new_olid.count("/") != 1:
|
||||
msg = f"{olid} is not a valid Open Library olid"
|
||||
raise ValueError(msg)
|
||||
return requests.get(f"https://openlibrary.org/{new_olid}.json").json()
|
||||
return requests.get(f"https://openlibrary.org/{new_olid}.json", timeout=10).json()
|
||||
|
||||
|
||||
def summarize_book(ol_book_data: dict) -> dict:
|
||||
|
Reference in New Issue
Block a user