0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 07:21:37 +01:00

No need for the exception variable

This commit is contained in:
David Baker 2017-05-03 11:02:59 +01:00
parent c0380402bc
commit 482a2ad122

View file

@ -260,7 +260,7 @@ class SimpleHttpClient(object):
errcode = jsonBody['errcode'] errcode = jsonBody['errcode']
error = jsonBody['error'] error = jsonBody['error']
return MatrixCodeMessageException(response.code, error, errcode) return MatrixCodeMessageException(response.code, error, errcode)
except (ValueError, KeyError) as e: except (ValueError, KeyError):
return CodeMessageException(response.code, body) return CodeMessageException(response.code, body)
# XXX: FIXME: This is horribly copy-pasted from matrixfederationclient. # XXX: FIXME: This is horribly copy-pasted from matrixfederationclient.