Commit d9e3c9fd authored by Ralf's avatar Ralf
Browse files

tab -> space

parent bdaf57a1
kate: space-indent off; tab-width 4; indent-width 4;
......@@ -23,13 +23,13 @@ def sendeMail(subject, text, receivers, sender=mailSender, replyTo=None):
msg['Reply-To'] = replyTo
# put into envelope and send
try:
s = smtplib.SMTP(mailServer)
s.sendmail(sender, receivers, msg.as_string())
s.quit()
except socket.gaierror as E:
# Don't use critical here, that would result in an endless loop...
logger.info("sendeMail: Could not send mail. THIS IS BAD! The mail is lost.")
return False
s = smtplib.SMTP(mailServer)
s.sendmail(sender, receivers, msg.as_string())
s.quit()
except socket.gaierror as E:
# Don't use critical here, that would result in an endless loop...
logger.info("sendeMail: Could not send mail. THIS IS BAD! The mail is lost.")
return False
# logging function
class Logger:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment