diff options
author | Jorik Schellekens <joriksch@gmail.com> | 2019-09-05 15:07:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 15:07:17 +0100 |
commit | ef20aa52ebb03b322e72a2fc4fefd21a373593a6 (patch) | |
tree | 1a8af6b753e476fa9dd980f165658c71c22cc9a3 /synapse/federation/sender | |
parent | Bugfix phrasing (diff) | |
download | synapse-ef20aa52ebb03b322e72a2fc4fefd21a373593a6.tar.xz |
use access methods (duh..)
Co-Authored-By: Erik Johnston <erik@matrix.org>
Diffstat (limited to 'synapse/federation/sender')
-rw-r--r-- | synapse/federation/sender/transaction_manager.py | 4 |
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() |