mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Closes #138
This commit is contained in:
parent
b6a2d895db
commit
1889597aec
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue