[3] check trakt response

This commit is contained in:
meisnate12 2022-08-23 11:57:27 -04:00
parent 23eccf1af7
commit 9718f4b221
2 changed files with 5 additions and 2 deletions

View file

@ -1 +1 @@
1.17.3-develop2
1.17.3-develop3

View file

@ -140,7 +140,10 @@ class Trakt:
if response.status_code != 200:
raise Failed(f"Trakt Error: ({response.status_code}) {response.reason}")
#raise Failed("Trakt Error: Invalid trakt pin. If you're sure you typed it in correctly your client_id or client_secret may be invalid")
elif not self._save(response.json()):
response_json = response.json()
if self.config.trace_mode:
logger.debug(response_json)
if not self._save(response_json):
raise Failed("Trakt Error: New Authorization Failed")
def _check(self, authorization=None):