Merge pull request #157 from Birdi7/fixing-issue-138

Closes #138
This commit is contained in:
Alex Root Junior 2019-07-15 15:43:50 +03:00 committed by GitHub
commit bcfadca314
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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