Skip to content

Commit

Permalink
Update sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py
Browse files Browse the repository at this point in the history
Co-authored-by: Xiaoxi Fu <49707495+xiafu-msft@users.noreply.github.com>
  • Loading branch information
tasherif-msft and xiafu-msft authored Sep 3, 2020
1 parent bddb476 commit 847ae15
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,11 @@ def exists(self, **kwargs):
snapshot=self.snapshot,
**kwargs)
return True
except StorageErrorException:
return False
except StorageErrorException as error:
try:
process_storage_error(error)
except ResourceNotFoundError:
return False

@distributed_trace
def get_blob_properties(self, **kwargs):
Expand Down

0 comments on commit 847ae15

Please sign in to comment.