Use a sensible default value for labels

This commit is contained in:
Brendan Abolivier 2019-10-31 14:47:09 +00:00
parent a46574281d
commit 07cb38e965
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
"event_id": event_id,
"label": label,
}
for label in event_json["content"].get(LabelsField)
for label in event_json["content"].get(LabelsField, [])
]
)