Don't cache empty results

This commit is contained in:
Ruud committed 2012-06-12 20:11:40 +02:00
1 parent aba9d57439
commit 67926f92a1
1 file changed
+1
+1
View File
@@ -216,6 +216,7 @@ class Plugin(object):
del kwargs['cache_timeout'] del kwargs['cache_timeout']
data = self.urlopen(url, **kwargs) data = self.urlopen(url, **kwargs)
if data:
self.setCache(cache_key, data, timeout = cache_timeout) self.setCache(cache_key, data, timeout = cache_timeout)
return data return data
except: except: