Skip to content
Permalink
Browse files

fix import issue

  • Loading branch information...
sdpython committed Mar 5, 2016
1 parent ef5fcd3 commit 43f28fbf2ba149e0c89eaed89bfd63d968a500f0
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/pyensae/remote/azure_connection.py
@@ -33,7 +33,7 @@ class AzureClient():
@example(Azure___Get the list of containers and files from a blob storage?)
The functionalities of a ``BlobService`` are described in
`blobservice.py <https://github.com/Azure/azure-sdk-for-python/blob/master/azure/storage/blobservice.py>`_.
`blockblobservice.py <https://github.com/Azure/azure-storage-python/blob/master/azure/storage/blob/blockblobservice.py>`_.
@code
from pyensae.remote.azure_connection import AzureClient
@@ -180,7 +180,10 @@ def open_blob_service(self):
"""
open a blob service
"""
from azure.storage.blob import BlobService
try:
from azure.storage.blob import BlobService
except ImportError:
from azure.storage.blob import BlockBlobService as BlobService
return BlobService(self.account_name, self.account_key)

def exists(self, blob_service, container_name, path):

0 comments on commit 43f28fb

Please sign in to comment.
You can’t perform that action at this time.