@@ -647,20 +648,20 @@ class Workflow(threading.Thread):
...
@@ -647,20 +648,20 @@ class Workflow(threading.Thread):
s.starttls()
s.starttls()
s.login(me,fromp)
s.login(me,fromp)
exceptsmtplib.SMTPHeloError:
exceptsmtplib.SMTPHeloError:
self._log("The server didn't reply properly to the HELO greeting.",level="debug",traceback=traceback.format_exc())
self._log("The server didn't reply properly to the HELO greeting.",level="debug",traceback=traceback.format_exc(chain=False))
exceptsmtplib.SMTPAuthenticationError:
exceptsmtplib.SMTPAuthenticationError:
self._log("The server didn't accept the username/password combination.",level="debug",traceback=traceback.format_exc())
self._log("The server didn't accept the username/password combination.",level="debug",traceback=traceback.format_exc(chain=False))
exceptsmtplib.SMTPException:
exceptsmtplib.SMTPException:
self._log("No suitable authentication method was found, or the server does not support the STARTTLS extension.",level="debug",traceback=traceback.format_exc())
self._log("No suitable authentication method was found, or the server does not support the STARTTLS extension.",level="debug",traceback=traceback.format_exc(chain=False))
exceptRuntimeError:
exceptRuntimeError:
self._log("SSL/TLS support is not available to your Python interpreter.",level="debug",traceback=traceback.format_exc())
self._log("SSL/TLS support is not available to your Python interpreter.",level="debug",traceback=traceback.format_exc(chain=False))
except:
except:
self._log("Unhandled error when sending mail.",level="debug",traceback=traceback.format_exc())
self._log("Unhandled error when sending mail.",level="debug",traceback=traceback.format_exc(chain=False))
finally:
finally:
s.sendmail(me,[you],msg.as_string())
s.sendmail(me,[you],msg.as_string())
s.close()
s.close()
except:
except:
self._log("Impossible to connect to smtp server '"+smtps+"'",level="debug",traceback=traceback.format_exc())
self._log("Impossible to connect to smtp server '"+smtps+"'",level="debug",traceback=traceback.format_exc(chain=False))
defget_parameters_per_groups(self):
defget_parameters_per_groups(self):
name=self.get_name()
name=self.get_name()
...
@@ -865,7 +866,7 @@ class Workflow(threading.Thread):
...
@@ -865,7 +866,7 @@ class Workflow(threading.Thread):