NAFF icon indicating copy to clipboard operation
NAFF copied to clipboard

fix💥: handle errors when parsing http exceptions

Open LordOfPolls opened this issue 3 years ago • 1 comments

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

LordOfPolls avatar Sep 18 '22 16:09 LordOfPolls

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

LordOfPolls avatar Sep 18 '22 16:09 LordOfPolls