diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index b04e785..2ad616b 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -216,7 +216,8 @@ class Plugin(object): del kwargs['cache_timeout'] data = self.urlopen(url, **kwargs) - self.setCache(cache_key, data, timeout = cache_timeout) + if data: + self.setCache(cache_key, data, timeout = cache_timeout) return data except: pass