Accept None as value to cache
parent
71129b5898
commit
70df746416
2
morss.py
2
morss.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue