Add a log message explaining why ransomware target directory is set to none

This commit is contained in:
VakarisZ 2021-07-07 13:02:10 +03:00
parent d3beebf995
commit 726e180797
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ class RansomwarePayload:
try:
return Path(expand_path(target_dir_field))
except InvalidPath:
except InvalidPath as e:
LOG.debug(f"Target ransomware dir set to None: {e}")
return None
def run_payload(self):