The following might be incorrect due to my unfamiliarity with both Python and this library, but it allowed me to get it to work on Solus:
request has it's own alias for both simplejson and json decode errors
except JSONDecodeError as e:
# Catch JSON-related errors and raise as requests.JSONDecodeError
# This aliases json.JSONDecodeError and simplejson.JSONDecodeError
Using it avoids uncaught errors disrupting the control flow on systems using simplejson (as the except clause doesn't catch simplejson exceptions in it's current form)
The following might be incorrect due to my unfamiliarity with both Python and this library, but it allowed me to get it to work on Solus:
request
has it's own alias for bothsimplejson
andjson
decode errorsUsing it avoids uncaught errors disrupting the control flow on systems using
simplejson
(as the except clause doesn't catchsimplejson
exceptions in it's current form)