summary refs log tree commit diff
path: root/synapse/storage/event_federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-07-08 15:37:33 +0100
committerErik Johnston <erik@matrix.org>2015-07-08 15:37:33 +0100
commit304343f4d7502d65ff7977df466209ef4702b90c (patch)
tree0eb1002013d40ef65dcd82e630859c467b3e6ec7 /synapse/storage/event_federation.py
parentAdd a cache to fetching of receipt streams (diff)
parentMerge pull request #197 from matrix-org/mjark/missing_regex_group (diff)
downloadsynapse-304343f4d7502d65ff7977df466209ef4702b90c.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/receipts
Diffstat (limited to 'synapse/storage/event_federation.py')
-rw-r--r--synapse/storage/event_federation.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index ace7459538..c71019d93b 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -408,10 +408,12 @@ class EventFederationStore(SQLBaseStore):
                 keyvalues={
                     "event_id": event_id,
                 },
-                retcol="depth"
+                retcol="depth",
+                allow_none=True,
             )
 
-            queue.put((-depth, event_id))
+            if depth:
+                queue.put((-depth, event_id))
 
         while not queue.empty() and len(event_results) < limit:
             try: