close reader before deleting blob

This commit is contained in:
Jack Robison 2020-08-17 13:22:57 -04:00 committed by Lex Berezhny
parent 8426b674a3
commit 8bdcac0f3e

View file

@ -337,9 +337,9 @@ class BlobFile(AbstractBlob):
return self.loop.create_task(write_blob()) return self.loop.create_task(write_blob())
def delete(self): def delete(self):
super().delete()
if os.path.isfile(self.file_path): if os.path.isfile(self.file_path):
os.remove(self.file_path) os.remove(self.file_path)
return super().delete()
@classmethod @classmethod
async def create_from_unencrypted( async def create_from_unencrypted(