forked from p15670423/monkey
Island: Wrap drop() Exceptions with RemovalError
This commit is contained in:
parent
84c8de6a7c
commit
07815eed93
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue