diff --git a/relaystatus.py b/relaystatus.py index eddd282..69971b6 100644 --- a/relaystatus.py +++ b/relaystatus.py @@ -42,4 +42,6 @@ with open(old_file, "w") as output: try: smtp = smptlib.SMTP('localhost') - smtp.sendmail('relaystatus@encryptionin.space', ['relaystatus@lists.encryptionin.space'],) + smtp.sendmail('relaystatus@encryptionin.space', ['relaystatus@lists.encryptionin.space'], status) +except SMTPException: + print("couldn't send")