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): def _remove_credentials_fom_collection(collection):
try: try:
collection.drop() collection.drop()
except RemovalError as err: except Exception as err:
raise err raise RemovalError(f"Error removing credentials: {err}")