summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-10-31 14:47:09 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-11-04 09:56:10 +0000
commit07cb38e965a29624b3cc8a07d4c86f61dbe7b72a (patch)
tree18907fb043c56faa0b1e9489791409e3d221caa9
parentUse the right format for rows (diff)
downloadsynapse-07cb38e965a29624b3cc8a07d4c86f61dbe7b72a.tar.xz
Use a sensible default value for labels
-rw-r--r--synapse/storage/data_stores/main/events_bg_updates.py2
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, [])
                     ]
                 )