[3] check trakt response

pull/998/head
meisnate12 2 years ago
parent 23eccf1af7
commit 9718f4b221

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

@ -140,7 +140,10 @@ class Trakt:
if response.status_code != 200: if response.status_code != 200:
raise Failed(f"Trakt Error: ({response.status_code}) {response.reason}") 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") #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") raise Failed("Trakt Error: New Authorization Failed")
def _check(self, authorization=None): def _check(self, authorization=None):

Loading…
Cancel
Save