From db343863096548c2ffdc0da018775db726aa44ac Mon Sep 17 00:00:00 2001 From: Jimmy Shen <14003693+jmmshn@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:18:17 -0700 Subject: [PATCH] Allow maggma to be used without Azure Currently, 0.52.0 raises an error ``` ../../../local/Caskroom/miniconda/base/envs/mp/lib/python3.9/site-packages/maggma/stores/azure.py:368: in AzureBlobStore def _get_container(self) -> Optional[ContainerClient]: E NameError: name 'ContainerClient' is not defined ``` --- src/maggma/stores/azure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maggma/stores/azure.py b/src/maggma/stores/azure.py index 1ba206394..8f2dcbc91 100644 --- a/src/maggma/stores/azure.py +++ b/src/maggma/stores/azure.py @@ -25,7 +25,7 @@ from azure.storage.blob import BlobServiceClient, ContainerClient except (ImportError, ModuleNotFoundError): azure_blob = None # type: ignore - # ContainerClient = None + ContainerClient = None AZURE_KEY_SANITIZE = {"-": "_", ".": "_"}