Add exception handling
This commit is contained in:
parent
ecd8a3ced6
commit
ed50ed6020
|
@ -42,4 +42,6 @@ with open(old_file, "w") as output:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
smtp = smptlib.SMTP('localhost')
|
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 a new issue