summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-05-03 10:56:22 +0100
committerDavid Baker <dave@matrix.org>2017-05-03 10:56:22 +0100
commitc0380402bc0c736a88db35a48ad554cbc2770fa6 (patch)
treed3b9cdfe0b55219b9163e842d87f4ef69c7bde58 /synapse/http
parentRemove debugging (diff)
downloadsynapse-c0380402bc0c736a88db35a48ad554cbc2770fa6.tar.xz
List caught expection types
Diffstat (limited to '')
-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 379ddcb540..f8dff37d24 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:
+        except (ValueError, KeyError) as e:
             return CodeMessageException(response.code, body)
 
     # XXX: FIXME: This is horribly copy-pasted from matrixfederationclient.