From 51bc49689343b6383d45a2ef7d29782dbcda775f Mon Sep 17 00:00:00 2001 From: MadCat9958 Date: Sun, 4 Jun 2023 13:08:30 +0300 Subject: [PATCH] =?UTF-8?q?<@585766846268047370>,=20=D1=81=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boticordpy/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boticordpy/http.py b/boticordpy/http.py index a0f2776..77c82cc 100644 --- a/boticordpy/http.py +++ b/boticordpy/http.py @@ -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(