NAFF
NAFF copied to clipboard
fix💥: handle errors when parsing http exceptions
breaking in case someone was relying on these exceptions
What type of pull request is this?
- [ ] Non-breaking code change
- [x] 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
- [x] I've formatted my code with Black
- [x] I've ensured my code works on
Python 3.10.x - [x] I've tested my code
The check fails are unrelated, but ironically they prove this pr works