Skip to content

Commit

Permalink
Fix broken subject default in crashmailbatch (#109)
Browse files Browse the repository at this point in the history
* Fix broken subject default in crashmailbatch

* still use get for safety

Co-authored-by: Joe Portela <joe@resy.com>
  • Loading branch information
joeportela and Joe Portela committed Dec 23, 2021
1 parent 63ce9b6 commit 3d7e529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superlance/crashmailbatch.py
Expand Up @@ -60,8 +60,8 @@ class CrashMailBatch(ProcessStateEmailMonitor):
process_state_events = ['PROCESS_STATE_EXITED']

def __init__(self, **kwargs):
kwargs['subject'] = kwargs.get('subject',
'Crash alert from supervisord')
if kwargs.get('subject') is None:
kwargs['subject'] = 'Crash alert from supervisord'
ProcessStateEmailMonitor.__init__(self, **kwargs)
self.now = kwargs.get('now', None)

Expand Down

0 comments on commit 3d7e529

Please sign in to comment.