mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 15:22:57 +00:00
List caught expection types
This commit is contained in:
1 parent
5fd12dce01
commit
c0380402bc
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user