From a657eec4ad266093e908710d196620e17265f491 Mon Sep 17 00:00:00 2001 From: LEv145 Date: Wed, 5 Jan 2022 23:38:05 +0200 Subject: [PATCH] Fix `search` --- aiontai/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiontai/api.py b/aiontai/api.py index 1f937c0..1138855 100644 --- a/aiontai/api.py +++ b/aiontai/api.py @@ -156,7 +156,7 @@ async def search( json: Dict[str, Any] = await responce.json() result = json["result"] - if not result: + if result: return json else: raise EmptyAPIResultError()