Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix💥: handle errors when parsing http exceptions #650

Merged
merged 3 commits into from
Sep 25, 2022

Conversation

LordOfPolls
Copy link
Member

breaking in case someone was relying on these exceptions

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

This prevents httpexception raising an exception when parsing the error payload, instead falling back on the provided text field.

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

breaking in case someone was relying on these exceptions
@LordOfPolls LordOfPolls added the Bug::Library A bug in the library label Sep 18, 2022
@LordOfPolls
Copy link
Member Author

The check fails are unrelated, but ironically they prove this pr works

@LordOfPolls LordOfPolls merged commit f94b952 into 2.x Sep 25, 2022
@LordOfPolls LordOfPolls deleted the printable-errors branch September 25, 2022 15:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug::Library A bug in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant