mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 08:53:51 +01:00
List caught expection types
This commit is contained in:
parent
5fd12dce01
commit
c0380402bc
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue