From 68a31e2540cd0391d05c525f142879b52ea9f09c Mon Sep 17 00:00:00 2001 From: "Mariusz B. / mgeeky" Date: Mon, 13 Dec 2021 19:38:38 +0100 Subject: [PATCH] oops --- decode-spam-headers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/decode-spam-headers.py b/decode-spam-headers.py index 926978f..2c5a473 100644 --- a/decode-spam-headers.py +++ b/decode-spam-headers.py @@ -1778,10 +1778,10 @@ class SMTPHeadersAnalysis: try: out = base64.b64decode(value) except: - try: - out = base64.b64decode(value + b'=' * (-len(value) % 4)) + try: + out = base64.b64decode(value + b'=' * (-len(value) % 4)) except: - out = value + out = value if enc: out = out.decode(errors = 'ignore')