summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-11-12 14:06:31 +0000
committerErik Johnston <erik@matrix.org>2015-11-12 14:47:48 +0000
commit39de87869c9ad966f382e597986e860d03f3fef2 (patch)
treefda66791ac1a5caf50c48c0d0b8ee55adf9ec10c
parentMerge pull request #364 from matrix-org/daniel/guestdisplaynames (diff)
downloadsynapse-39de87869c9ad966f382e597986e860d03f3fef2.tar.xz
Fix bug where assumed dict was namedtuple
-rw-r--r--synapse/storage/transactions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/transactions.py b/synapse/storage/transactions.py
index 4e0d7c9774..ad099775eb 100644
--- a/synapse/storage/transactions.py
+++ b/synapse/storage/transactions.py
@@ -59,7 +59,7 @@ class TransactionStore(SQLBaseStore):
             allow_none=True,
         )
 
-        if result and result.response_code:
+        if result and result["response_code"]:
             return result["response_code"], result["response_json"]
         else:
             return None