diff options
author | David Baker <dave@matrix.org> | 2017-05-03 10:56:22 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-05-03 10:56:22 +0100 |
commit | c0380402bc0c736a88db35a48ad554cbc2770fa6 (patch) | |
tree | d3b9cdfe0b55219b9163e842d87f4ef69c7bde58 /synapse/http | |
parent | Remove debugging (diff) | |
download | synapse-c0380402bc0c736a88db35a48ad554cbc2770fa6.tar.xz |
List caught expection types
Diffstat (limited to 'synapse/http')
-rw-r--r-- | synapse/http/client.py | 2 |
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. |