From 67926f92a131f9ecdaa8fad94088659e7121bbfe Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 12 Jun 2012 20:11:40 +0200 Subject: [PATCH] Don't cache empty results --- couchpotato/core/plugins/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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