Accept None as value to cache

master
pictuga 2013-07-18 23:51:11 +02:00
parent 71129b5898
commit 70df746416
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class Cache:
return None return None
def set(self, key, content): def set(self, key, content):
self._cache[key] = b64encode(content) self._cache[key] = b64encode(content or '')
def save(self): def save(self):
if len(self._cache) == 0: if len(self._cache) == 0: