This commit is contained in:
birdi 2019-07-12 20:25:34 +03:00
parent b6a2d895db
commit 1889597aec

View file

@ -20,7 +20,8 @@ class _FileStorage(MemoryStorage):
pass pass
async def close(self): async def close(self):
self.write(self.path) if self.data:
self.write(self.path)
await super(_FileStorage, self).close() await super(_FileStorage, self).close()
def read(self, path: pathlib.Path): def read(self, path: pathlib.Path):