mirror of
https://github.com/boticord/boticordpy.git
synced 2024-09-22 19:32:01 +03:00
<@585766846268047370>, сделал
This commit is contained in:
parent
11f5ca3fc7
commit
51bc496893
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class HttpClient:
|
||||||
async with self.session.request(method, url, **kwargs) as response:
|
async with self.session.request(method, url, **kwargs) as response:
|
||||||
data = await response.json()
|
data = await response.json()
|
||||||
|
|
||||||
if response.status == 200 or response.status == 201:
|
if (200, 201).__contains__(response.status):
|
||||||
return data["result"]
|
return data["result"]
|
||||||
else:
|
else:
|
||||||
raise exceptions.HTTPException(
|
raise exceptions.HTTPException(
|
||||||
|
|
Loading…
Reference in a new issue