diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-10-31 14:47:09 +0000 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-11-04 09:56:10 +0000 |
commit | 07cb38e965a29624b3cc8a07d4c86f61dbe7b72a (patch) | |
tree | 18907fb043c56faa0b1e9489791409e3d221caa9 /synapse/storage | |
parent | Use the right format for rows (diff) | |
download | synapse-07cb38e965a29624b3cc8a07d4c86f61dbe7b72a.tar.xz |
Use a sensible default value for labels
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/data_stores/main/events_bg_updates.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/events_bg_updates.py b/synapse/storage/data_stores/main/events_bg_updates.py index 013242b04e..448048e11d 100644 --- a/synapse/storage/data_stores/main/events_bg_updates.py +++ b/synapse/storage/data_stores/main/events_bg_updates.py @@ -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, []) ] ) |