Skip to content

Commit

Permalink
smtpHost may not be present, use get to satisfy both tests and low-le…
Browse files Browse the repository at this point in the history
…vel creation
  • Loading branch information
mcdonc committed Jan 19, 2011
1 parent 7038586 commit a9f1104
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
env26/
*.egg
*.egg-info
dist/
*.pyc

2 changes: 1 addition & 1 deletion superlance/process_state_email_monitor.py
Expand Up @@ -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):
Expand Down

0 comments on commit a9f1104

Please sign in to comment.