Skip to content
Snippets Groups Projects

Ensure HTTPError.response is not None

The implementation of HTTPError in requests does not guarantee that the response property will always be set. So we need to ensure it is not None before looking for the return code, for example.

This also makes mypy checks pass again, as types-request was updated in 2.31.0.9 to better match this particular aspect. See: https://github.com/python/typeshed/pull/10875

Merge request reports

Pipeline #4747 passed

Pipeline passed for 7344d264 on lunar:fix-for-types-requests-2.31.0.9

Approval is optional

Merged by Jérémy Bobbio (Lunar)Jérémy Bobbio (Lunar) 1 year ago (Oct 18, 2023 8:55am UTC)

Merge details

  • Changes merged into with 7344d264.
  • Deleted the source branch.

Pipeline #4750 passed

Pipeline passed for 7344d264 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading