1
0
Fork 0

Update to not send mails in case nothing changes

Future TODO: Send update if expiry is close (< 30 days)
This commit is contained in:
Luca Beltrame 2021-08-28 22:43:21 +02:00
parent 3cad10d133
commit 782f3202e3
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -44,6 +44,7 @@ def main():
elif "unexpected error occurred" in line:
state = State.error
if state is not State.no_action:
text = "\n".join(text)
subject = SUBJECT.format(str(state))
message = drymail.Message(
@ -54,8 +55,6 @@ def main():
text=text
)
client = drymail.SMTPMailer(
host='localhost')