diff --git a/monkey/infection_monkey/exploit/zerologon.py b/monkey/infection_monkey/exploit/zerologon.py index 97f0ea5e8..3739f2408 100644 --- a/monkey/infection_monkey/exploit/zerologon.py +++ b/monkey/infection_monkey/exploit/zerologon.py @@ -139,7 +139,7 @@ class ZerologonExploiter(HostExploiter): if err.get_error_code() != self.ERROR_CODE_ACCESS_DENIED: error_message = f"Unexpected error code from DC: {err.get_error_code()}" logger.info(error_message) - except BaseException as err: + except Exception as err: error_message = f"Unexpected error: {err}" logger.info(error_message)