pigskin / kodi-gamepass

NFL Game Pass add-on for Kodi
Other
123 stars 83 forks source link

Restore make_request; raise all errors returned by API #296

Closed emilsvennesson closed 7 years ago

emilsvennesson commented 7 years ago

Restores make_request method and attempts to raise all errors returned by the Game Pass API as GamePassError. When the JSON response contains either 'Message' or 'message', it means that the request was unsuccessful. This made the authentication code much simpler to write as it will automatically raise 'error_unauthorised' on failure.

aqw commented 7 years ago

@emilsvennesson Excellent. You pushed those bug fixes right as I noticed the problems. :-)

This looks much cleaner. This'll be merged and pushed in a moment.

---Alex