Island: Wrap drop() Exceptions with RemovalError

This commit is contained in:
Mike Salvatore 2022-09-15 11:56:58 -04:00
parent 84c8de6a7c
commit 07815eed93
1 changed files with 2 additions and 2 deletions

View File

@ -110,5 +110,5 @@ class MongoCredentialsRepository(ICredentialsRepository):
def _remove_credentials_fom_collection(collection):
try:
collection.drop()
except RemovalError as err:
raise err
except Exception as err:
raise RemovalError(f"Error removing credentials: {err}")