summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-25 09:48:01 +0100
committerErik Johnston <erik@matrix.org>2018-07-25 09:48:01 +0100
commita297ff2b16094f358cc8432f1db660ca539f8b4d (patch)
treec91452bb8cd8eeff5b0062c833c2cdf2fff24fa1 /synapse/storage
parentNewsfile (diff)
downloadsynapse-a297ff2b16094f358cc8432f1db660ca539f8b4d.tar.xz
Fix typo in conditional
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index bd05f23b06..5024c4714d 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -576,7 +576,7 @@ class EventsStore(EventsWorkerStore):
         for ev, ctx in events_context:
             if ctx.state_group is None:
                 # This should only happen for outlier events.
-                if not event.internal_metadata.is_outlier():
+                if not ev.internal_metadata.is_outlier():
                     raise Exception(
                         "Context for new event %s has no state "
                         "group" % (ev.event_id, ),