diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-18 10:51:32 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-18 10:51:32 +0000 |
commit | 65ca713ff53794bd517a85de7df063e631fb255a (patch) | |
tree | 2b1f440f6c5f0883e1aecb1271d3ae46e8b66f06 /synapse/http/matrixfederationclient.py | |
parent | Fix up ResponseNeverReceived to str (diff) | |
download | synapse-65ca713ff53794bd517a85de7df063e631fb255a.tar.xz |
Add .__name__ after type(e)
Diffstat (limited to 'synapse/http/matrixfederationclient.py')
-rw-r--r-- | synapse/http/matrixfederationclient.py | 4 |
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,) |