Skip to content

Commit

Permalink
Allow maggma to be used without Azure
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
jmmshn authored Aug 1, 2023
1 parent e354f4a commit db34386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maggma/stores/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {"-": "_", ".": "_"}
Expand Down

0 comments on commit db34386

Please sign in to comment.