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):
|
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}")
|
||||||
|
|
Loading…
Reference in New Issue