From 482a2ad12239cfcc4886e33a0b3ac5e16196e03a Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 3 May 2017 11:02:59 +0100 Subject: [PATCH] No need for the exception variable --- synapse/http/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/http/client.py b/synapse/http/client.py index f8dff37d24..9cf797043a 100644 --- a/synapse/http/client.py +++ b/synapse/http/client.py @@ -260,7 +260,7 @@ class SimpleHttpClient(object): errcode = jsonBody['errcode'] error = jsonBody['error'] return MatrixCodeMessageException(response.code, error, errcode) - except (ValueError, KeyError) as e: + except (ValueError, KeyError): return CodeMessageException(response.code, body) # XXX: FIXME: This is horribly copy-pasted from matrixfederationclient.