Add exception handling

This commit is contained in:
HackerNCoder 2021-09-27 02:21:54 +00:00
parent ecd8a3ced6
commit ed50ed6020

View file

@ -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")