Permalink
Browse files

smtpHost may not be present, use get to satisfy both tests and low-le…

…vel creation
  • Loading branch information...
1 parent 7038586 commit a9f1104c743d1a118a3c7f6d2fc3b9890170af8f @mcdonc mcdonc committed Jan 19, 2011
Showing with 7 additions and 1 deletion.
  1. +6 −0 .gitignore
  2. +1 −1 superlance/process_state_email_monitor.py
View
@@ -0,0 +1,6 @@
+env26/
+*.egg
+*.egg-info
+dist/
+*.pyc
+
@@ -64,7 +64,7 @@ def __init__(self, **kwargs):
self.fromEmail = kwargs['fromEmail']
self.toEmail = kwargs['toEmail']
self.subject = kwargs.get('subject', 'Alert from supervisord')
- self.smtpHost = kwargs['smtpHost']
+ self.smtpHost = kwargs.get('smtpHost', 'localhost')
self.digestLen = 76
def sendBatchNotification(self):

0 comments on commit a9f1104

Please sign in to comment.