diff --git a/monkey/infection_monkey/ransomware/ransomware_payload.py b/monkey/infection_monkey/ransomware/ransomware_payload.py index 56fd6f07f..f2e3eb476 100644 --- a/monkey/infection_monkey/ransomware/ransomware_payload.py +++ b/monkey/infection_monkey/ransomware/ransomware_payload.py @@ -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):