Merge pull request #3 from qwertiko/master

result used before assignment
This commit is contained in:
Mariusz B 2021-10-18 17:18:58 +02:00 committed by GitHub
commit c954e554e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1660,15 +1660,12 @@ Results will be unsound. Make sure you have pasted your headers with correct spa
if value.strip().lower() == 'yes':
result = self.logger.colored(f'- SpamAssassin marked this message as SPAM:\n', 'red')
result += f'\t- ' + self.logger.colored(value, 'red') + '\n'
if len(result) == 0:
return []
return {
'header' : header,
'value': value,
'analysis' : result
}
return {
'header' : header,
'value': value,
'analysis' : result
}
return []
def testSpamAssassinSpamLevel(self):
(num, header, value) = self.getHeader('X-Spam-Level')