Skip to content
Snippets Groups Projects
Commit be4d9cf9 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

spell the exception name right

parent 17daf840
No related branches found
No related tags found
1 merge request!226Use `add_lease` instead of `renew_lease`
...@@ -186,7 +186,7 @@ def create_shares(storage_server, storage_index, size, lease_expiration): ...@@ -186,7 +186,7 @@ def create_shares(storage_server, storage_index, size, lease_expiration):
:return: ``None`` :return: ``None``
""" """
if storage_index in storage_server.buckets: if storage_index in storage_server.buckets:
raise SharesAlready( raise SharesAlreadyExist(
"Cannot create shares for storage index where they already exist.", "Cannot create shares for storage index where they already exist.",
) )
storage_server.buckets[storage_index] = ShareStat( storage_server.buckets[storage_index] = ShareStat(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment