@@ -595,9 +593,6 @@ class Workflow(threading.Thread):
delodict['_Thread__stderr']
ifodict.has_key('external_components'):
delodict['external_components']
ifodict.has_key('stderrfh'):
self.stderrfh.close()
delodict['stderrfh']
returnodict
defset_to_address(self,to_address):
...
...
@@ -644,20 +639,20 @@ class Workflow(threading.Thread):
s.starttls()
s.login(me,fromp)
exceptsmtplib.SMTPHeloError:
logging.getLogger("wf."+str(self.id)).debug("The server didn't reply properly to the HELO greeting.")
self._log("The server didn't reply properly to the HELO greeting.",level="debug",traceback=traceback.format_exc())
exceptsmtplib.SMTPAuthenticationError:
logging.getLogger("wf."+str(self.id)).debug("The server didn't accept the username/password combination.")
self._log("The server didn't accept the username/password combination.",level="debug",traceback=traceback.format_exc())
exceptsmtplib.SMTPException:
logging.getLogger("wf."+str(self.id)).debug("No suitable authentication method was found, or the server does not support the STARTTLS extension.")
self._log("No suitable authentication method was found, or the server does not support the STARTTLS extension.",level="debug",traceback=traceback.format_exc())
exceptRuntimeError:
logging.getLogger("wf."+str(self.id)).debug("SSL/TLS support is not available to your Python interpreter.")
self._log("SSL/TLS support is not available to your Python interpreter.",level="debug",traceback=traceback.format_exc())
except:
logging.getLogger("wf."+str(self.id)).debug("Unhandled error when sending mail.")
self._log("Unhandled error when sending mail.",level="debug",traceback=traceback.format_exc())
finally:
s.sendmail(me,[you],msg.as_string())
s.close()
except:
logging.getLogger("wf."+str(self.id)).debug("Impossible to connect to smtp server '"+smtps+"'")
self._log("Impossible to connect to smtp server '"+smtps+"'",level="debug",traceback=traceback.format_exc())
defget_parameters_per_groups(self):
name=self.get_name()
...
...
@@ -862,7 +857,7 @@ class Workflow(threading.Thread):