Move success flag before 'try'

This commit is contained in:
Piotr F. Mieszkowski 2023-04-08 22:23:47 +02:00
parent 0da169ae61
commit 67e6df17fb
1 changed files with 1 additions and 2 deletions

View File

@ -41,9 +41,8 @@ if missing_params:
LOG.error(f"Aborting delivery! Following mandatory config parameters are missing: {missing_params!r}")
sys.exit(lacre.EX_CONFIG)
try:
delivered = False
try:
# Read e-mail from stdin, parse it
raw = sys.stdin.read()
raw_message = email.message_from_string(raw, policy=SMTPUTF8)