Skip to content

Replace deprecated httpx.NetworkError with httpx.ConnectError#876

Open
raywcm wants to merge 2 commits into
pyupio:mainfrom
raywcm:fix/httpx-networkerror-deprecation
Open

Replace deprecated httpx.NetworkError with httpx.ConnectError#876
raywcm wants to merge 2 commits into
pyupio:mainfrom
raywcm:fix/httpx-networkerror-deprecation

Conversation

@raywcm

@raywcm raywcm commented Jun 4, 2026

Copy link
Copy Markdown

httpx.NetworkError was removed in httpx 1.0. The replacement is httpx.ConnectError, which was introduced in httpx 0.24 and has been the standard connection error class since.

Affected files:

  • safety/auth/enrollment.py
  • safety/events/handlers/common.py

Closes #860

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cb391ac8-fad3-4b5a-ad1e-baba50549dc3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

AttributeError: module 'httpx' has no attribute 'NetworkError' with httpx 1.0.dev3 (Python 3.14.5rc1), httpx incompatibility

1 participant