mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +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:
|
||||
data = await response.json()
|
||||
|
||||
if response.status == 200 or response.status == 201:
|
||||
if (200, 201).__contains__(response.status):
|
||||
return data["result"]
|
||||
else:
|
||||
raise exceptions.HTTPException(
|
||||
|
|
Loading…
Reference in a new issue