1
0
Fork 0

Fix the letsencrypt script to actually ignore "no action" notifications

This commit is contained in:
Luca Beltrame 2021-08-29 16:27:05 +02:00
parent 782f3202e3
commit 432a5614dd
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -6,8 +6,6 @@
from enum import Enum from enum import Enum
import fileinput import fileinput
import sys
import select
import drymail # Vendored import drymail # Vendored
@ -44,7 +42,9 @@ def main():
elif "unexpected error occurred" in line: elif "unexpected error occurred" in line:
state = State.error state = State.error
if state is not State.no_action: if state is State.no_action:
return
text = "\n".join(text) text = "\n".join(text)
subject = SUBJECT.format(str(state)) subject = SUBJECT.format(str(state))
message = drymail.Message( message = drymail.Message(