use access methods (duh..)

Co-Authored-By: Erik Johnston <erik@matrix.org>
pull/5984/head
Jorik Schellekens 2019-09-05 15:07:17 +01:00 committed by GitHub
parent 7093790fbc
commit ef20aa52eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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()