Move success flag before 'try'
This commit is contained in:
parent
0da169ae61
commit
67e6df17fb
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue