From 8610c694cc393b2728a5d019f43307f73e996f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Bieli=C5=84ski?= Date: Mon, 11 Dec 2023 10:52:33 +0100 Subject: [PATCH] Refactoring a bit --- smtp_connector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smtp_connector.py b/smtp_connector.py index 9d65441..3f9ea67 100644 --- a/smtp_connector.py +++ b/smtp_connector.py @@ -693,8 +693,8 @@ def _add_attachments(self, outer, attachments, action_result, message_encoding): return action_result.set_status(phantom.APP_ERROR, SMTP_ERROR_SMTP_SEND_EMAIL) phantom_home_path = self.get_phantom_home() - report_dir_pre_4_0 = f"{phantom_home_path}/www/reports" - report_dir_post_4_0 = f"{phantom_home_path}/vault/reports" + report_dir_pre_4_0 = os.path.join(phantom_home_path, "www", "reports") + report_dir_post_4_0 = os.path.join(phantom_home_path, "vault", "reports") filename = '' for report_dir in (report_dir_post_4_0, report_dir_pre_4_0):