summary refs log tree commit diff
path: root/synapse/federation/sender/transaction_manager.py
diff options
context:
space:
mode:
authorJorik Schellekens <joriksch@gmail.com>2019-09-05 15:07:17 +0100
committerGitHub <noreply@github.com>2019-09-05 15:07:17 +0100
commitef20aa52ebb03b322e72a2fc4fefd21a373593a6 (patch)
tree1a8af6b753e476fa9dd980f165658c71c22cc9a3 /synapse/federation/sender/transaction_manager.py
parentBugfix phrasing (diff)
downloadsynapse-ef20aa52ebb03b322e72a2fc4fefd21a373593a6.tar.xz
use access methods (duh..)
Co-Authored-By: Erik Johnston <erik@matrix.org>
Diffstat (limited to 'synapse/federation/sender/transaction_manager.py')
-rw-r--r--synapse/federation/sender/transaction_manager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/federation/sender/transaction_manager.py b/synapse/federation/sender/transaction_manager.py
index 42f46394bc..5b6c79c51a 100644
--- a/synapse/federation/sender/transaction_manager.py
+++ b/synapse/federation/sender/transaction_manager.py
@@ -64,7 +64,9 @@ class TransactionManager(object):
         keep_destination = whitelisted_homeserver(destination)
 
         for edu in pending_edus:
-            span_contexts.append(extract_text_map(json.loads(edu.get_context())))
+            context = edu.get_context()
+            if context:
+                span_contexts.append(extract_text_map(json.loads(context)))
             if keep_destination:
                 edu.strip_context()