Add exception handling
parent
ecd8a3ced6
commit
ed50ed6020
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue