Skip to content

Commit

Permalink
use access methods (duh..)
Browse files Browse the repository at this point in the history
Co-Authored-By: Erik Johnston <[email protected]>
  • Loading branch information
JorikSchellekens and erikjohnston authored Sep 5, 2019
1 parent 7093790 commit ef20aa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/federation/sender/transaction_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def send_new_transaction(self, destination, pending_pdus, pending_edus):
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()

Expand Down

0 comments on commit ef20aa5

Please sign in to comment.