summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-18 10:51:32 +0000
committerErik Johnston <erik@matrix.org>2015-02-18 10:51:32 +0000
commit65ca713ff53794bd517a85de7df063e631fb255a (patch)
tree2b1f440f6c5f0883e1aecb1271d3ae46e8b66f06 /synapse/http
parentFix up ResponseNeverReceived to str (diff)
downloadsynapse-65ca713ff53794bd517a85de7df063e631fb255a.tar.xz
Add .__name__ after type(e)
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/matrixfederationclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index 304efcdd56..49a4c7d9d3 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -151,7 +151,7 @@ class MatrixFederationHttpClient(object):
                     destination,
                     method,
                     url_bytes,
-                    type(e). __name__,
+                    type(e).__name__,
                     _flatten_response_never_received(e),
                 )
 
@@ -475,4 +475,4 @@ def _flatten_response_never_received(e):
             for f in e.reasons
         )
     else:
-        return "%s: %s" % (type(e), e.message,)
+        return "%s: %s" % (type(e).__name__, e.message,)