Raise error when response not OK
This commit is contained in:
parent
96199b0d6d
commit
46971fe96f
@ -38,4 +38,6 @@ class MatrixClient:
|
||||
}
|
||||
response = requests.get(self.ONE_TO_MANY_URL, params=request_params)
|
||||
|
||||
response.raise_for_status() # raise exception if not 200 OK
|
||||
|
||||
return response.json()
|
||||
|
Loading…
Reference in New Issue
Block a user