Skip to content
Snippets Groups Projects
Commit b393f5db authored by David Baker's avatar David Baker
Browse files

Use .get - it's much shorter

parent a2562f9d
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ class HttpPusher(object):
@defer.inlineCallbacks
def _build_notification_dict(self, event, tweaks, badge):
if 'format' in self.data and self.data['format'] == 'event_id_only':
if self.data.get('format') == 'event_id_only':
d = {
'notification': {
'event_id': event.event_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment