Agent: Catch Exception instead of BaseException in zerologon

This commit is contained in:
Shreya Malviya 2022-10-06 15:59:01 +05:30 committed by Ilija Lazoroski
parent 237b0ae394
commit 3b60c760e4
1 changed files with 1 additions and 1 deletions

View File

@ -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)