CHBrianLiu/UQ-price-notification

The import path of JSONDecodeError

Opened this issue · 0 comments

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:

image