summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-05-03 11:02:59 +0100
committerDavid Baker <dave@matrix.org>2017-05-03 11:02:59 +0100
commit482a2ad12239cfcc4886e33a0b3ac5e16196e03a (patch)
tree3a760934793effcd32f346743c4233a972bc2c09 /synapse
parentList caught expection types (diff)
downloadsynapse-482a2ad12239cfcc4886e33a0b3ac5e16196e03a.tar.xz
No need for the exception variable
Diffstat (limited to 'synapse')
-rw-r--r--synapse/http/client.py2
1 files changed, 1 insertions, 1 deletions
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.