diff --git a/lib/trakt/trakt.py b/lib/trakt/trakt.py index c5293ee321ea7a85307859c98a848f51fd381cdb..bb176f9fb25d5821c12cf2c89f1cd329e7f6b84c 100644 --- a/lib/trakt/trakt.py +++ b/lib/trakt/trakt.py @@ -110,13 +110,11 @@ class TraktAPI(): elif code in (500,501,503,504,520,521,522): #http://docs.trakt.apiary.io/#introduction/status-codes logger.log(u'Trakt may have some issues and it\'s unavailable. Try again later please', logger.WARNING) - return {} elif code is 404: logger.log(u'Trakt error (404) the resource does not exist: %s' % url + path, logger.WARNING) - return {} else: logger.log(u'Could not connect to Trakt. Code error: {0}'.format(code), logger.ERROR) - return {} + return {} # check and confirm trakt call did not fail if isinstance(resp, dict) and resp.get('status', False) == 'failure':