0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-30 16:38:21 +02:00

List caught expection types

This commit is contained in:
David Baker 2017-05-03 10:56:22 +01:00
parent 5fd12dce01
commit c0380402bc

View file

@ -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.