forked from p15670423/monkey
Island: Change credentials stolen event subscriber argument name
This commit is contained in:
parent
0c6997c147
commit
2857e70fa2
|
@ -14,10 +14,8 @@ class save_stolen_credentials_to_repository:
|
||||||
def __init__(self, credentials_repository: ICredentialsRepository):
|
def __init__(self, credentials_repository: ICredentialsRepository):
|
||||||
self._credentials_repository = credentials_repository
|
self._credentials_repository = credentials_repository
|
||||||
|
|
||||||
def __call__(self, credentials_stolen_event: CredentialsStolenEvent):
|
def __call__(self, event: CredentialsStolenEvent):
|
||||||
try:
|
try:
|
||||||
self._credentials_repository.save_stolen_credentials(
|
self._credentials_repository.save_stolen_credentials(event.stolen_credentials)
|
||||||
credentials_stolen_event.stolen_credentials
|
|
||||||
)
|
|
||||||
except StorageError as err:
|
except StorageError as err:
|
||||||
logger.error(f"Error occurred while storing stolen credentials: {err}")
|
logger.error(f"Error occurred while storing stolen credentials: {err}")
|
||||||
|
|
Loading…
Reference in New Issue