summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2016-09-09 13:31:17 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2016-09-09 13:31:17 +0100
commit6eb0c8a2e46362f61d34a99416fed6b12055c368 (patch)
treec42a1a1cde31d5d9f7c979b14efeb5e50de21103 /synapse
parentEfficiency fix for lookups of a single protocol (diff)
downloadsynapse-6eb0c8a2e46362f61d34a99416fed6b12055c368.tar.xz
Python isn't JavaScript; have to quote dict keys
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v2_alpha/thirdparty.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/thirdparty.py b/synapse/rest/client/v2_alpha/thirdparty.py
index 6bf9eb10ae..d58385d5e5 100644
--- a/synapse/rest/client/v2_alpha/thirdparty.py
+++ b/synapse/rest/client/v2_alpha/thirdparty.py
@@ -61,7 +61,7 @@ class ThirdPartyProtocolServlet(RestServlet):
         if protocol in protocols:
             defer.returnValue((200, protocols[protocol]))
         else:
-            defer.returnValue((404, {error: "Unknown protocol"}))
+            defer.returnValue((404, {"error": "Unknown protocol"}))
 
 
 class ThirdPartyUserServlet(RestServlet):