From b87c3f4e144777ab9f6d0159b575643cc563eecb Mon Sep 17 00:00:00 2001 From: "Sebastian W. Gram" Date: Thu, 9 Mar 2017 22:39:52 +0100 Subject: [PATCH] fixed key error exception throws a key error exception when finding 0 movie results from the api call - tried to return error from the repsonse but there will never exists an error, because of the way yts.ag's API works. --- couchpotato/core/media/_base/providers/torrent/yts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/media/_base/providers/torrent/yts.py b/couchpotato/core/media/_base/providers/torrent/yts.py index 55029b2..5a6b330 100644 --- a/couchpotato/core/media/_base/providers/torrent/yts.py +++ b/couchpotato/core/media/_base/providers/torrent/yts.py @@ -25,7 +25,7 @@ class Base(TorrentMagnetProvider): movie_count = tryInt(data['data']['movie_count']) if movie_count == 0: - log.error('%s returned an error (search or tryInt() failed): %s', (self.getName(), data['error'])) + log.error('%s returned an error (search or tryInt() failed): found no results', (self.getName())) else: movie_results = data['data']['movies']