Browse Source

Fix/azure blob new version (#5004)

tags/0.6.11
Jyong 1 year ago
parent
commit
481e7bc6b9
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/extensions/storage/azure_storage.py

+ 1
- 1
api/extensions/storage/azure_storage.py View File

@@ -39,7 +39,7 @@ class AzureStorage(BaseStorage):
def generate(filename: str = filename) -> Generator:
blob = client.get_blob_client(container=self.bucket_name, blob=filename)
with closing(blob.download_blob()) as blob_stream:
while chunk := blob_stream.readall(4096):
while chunk := blob_stream.readall():
yield chunk

return generate()

Loading…
Cancel
Save