I saw a warning from my IDE that the JSONDecodeError
is not in the requests.exceptions
module. We can check if the exception is a part of the json
module or a customized exception in requests
lib. Furthermore, we should consider adding unit tests for the exception reraise logic.
|
except requests.exceptions.JSONDecodeError as e: |