Create cache file when missing
Damn it...
This commit is contained in:
parent
020c095194
commit
52fe67beb3
2
morss.py
2
morss.py
@ -170,7 +170,7 @@ class Cache:
|
||||
if not os.path.exists(self._dir):
|
||||
os.makedirs(self._dir)
|
||||
|
||||
with open(self._file, 'w') as file:
|
||||
with open(self._file, 'w+') as file:
|
||||
file.write(json.dumps(self._cache, indent=4))
|
||||
|
||||
def isYoungerThan(self, sec):
|
||||
|
Loading…
x
Reference in New Issue
Block a user