From 2427e0369891aadd68a92291f46dd101b47fe93c Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Fri, 19 Aug 2016 22:19:46 +0300 Subject: [PATCH] Exit if no claws mail config found --- Linux/src/softwares/mails/clawsmail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Linux/src/softwares/mails/clawsmail.py b/Linux/src/softwares/mails/clawsmail.py index 75e48f5e..63834670 100644 --- a/Linux/src/softwares/mails/clawsmail.py +++ b/Linux/src/softwares/mails/clawsmail.py @@ -21,6 +21,7 @@ def run(self): path = self.get_path() if not path: print_debug('INFO', 'ClawsMail not installed.') + return mode = DES.MODE_CFB if 'FreeBSD' in platform.system(): @@ -89,4 +90,4 @@ def accountrc_decrypt(self, filename, key, mode=DES.MODE_CFB): if len(values) != 0: pwdFound.append(values) - return pwdFound \ No newline at end of file + return pwdFound