From 70df7464160ddd543527d33ee1ce8c1fd3d37590 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 18 Jul 2013 23:51:11 +0200 Subject: [PATCH] Accept None as value to cache --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 0e09829..2c43995 100644 --- a/morss.py +++ b/morss.py @@ -161,7 +161,7 @@ class Cache: return None def set(self, key, content): - self._cache[key] = b64encode(content) + self._cache[key] = b64encode(content or '') def save(self): if len(self._cache) == 0: