Skip to content

fix requests->httpx#11486

Merged
jimchamp merged 1 commit intomasterfrom
fix/requests-httpx
Nov 18, 2025
Merged

fix requests->httpx#11486
jimchamp merged 1 commit intomasterfrom
fix/requests-httpx

Conversation

@mekarpeles
Copy link
Copy Markdown
Member

Followup to #11090 ; fixes requests reference, replaced with httpx

This pull request makes a small update to the exception handling in the save_page_now function in openlibrary/core/ia.py. The change switches the caught exception from requests.RequestException to httpx.RequestException, likely reflecting a transition from the requests library to httpx for HTTP requests.

Copilot AI review requested due to automatic review settings November 18, 2025 19:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR completes the migration from the requests library to httpx by updating the exception handling in the save_page_now function. This is a followup to PR #11090.

Key Changes:

  • Updated exception handling from requests.RequestException to httpx.RequestException to align with the httpx library

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mekarpeles thanks I was hitting this too. Can confirm this is the change we need.

@jimchamp jimchamp merged commit a5d035c into master Nov 18, 2025
14 checks passed
@jimchamp jimchamp deleted the fix/requests-httpx branch November 18, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants