forked from MirrorHub/synapse
Add .__name__ after type(e)
This commit is contained in:
parent
5e24471469
commit
65ca713ff5
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ class MatrixFederationHttpClient(object):
|
||||||
destination,
|
destination,
|
||||||
method,
|
method,
|
||||||
url_bytes,
|
url_bytes,
|
||||||
type(e). __name__,
|
type(e).__name__,
|
||||||
_flatten_response_never_received(e),
|
_flatten_response_never_received(e),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -475,4 +475,4 @@ def _flatten_response_never_received(e):
|
||||||
for f in e.reasons
|
for f in e.reasons
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return "%s: %s" % (type(e), e.message,)
|
return "%s: %s" % (type(e).__name__, e.message,)
|
||||||
|
|
Loading…
Reference in a new issue