mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-06 09:55:06 -04:00
Use .get - it's much shorter
This commit is contained in:
parent
a2562f9d74
commit
b393f5db51
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ class HttpPusher(object):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _build_notification_dict(self, event, tweaks, badge):
|
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 = {
|
d = {
|
||||||
'notification': {
|
'notification': {
|
||||||
'event_id': event.event_id,
|
'event_id': event.event_id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue