From 48a4d42c974f39381ef8940b79c906d9646168a9 Mon Sep 17 00:00:00 2001 From: Anubhav <57266248+Anubhav1603@users.noreply.github.com> Date: Thu, 17 Sep 2020 16:22:16 +0530 Subject: Changed len(searched_result)-> searched result Co-authored-by: Thomas Petersson <61778143+thomaspet@users.noreply.github.com> --- bot/exts/evergreen/wikipedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py index 6ddcdbe9..83feee88 100644 --- a/bot/exts/evergreen/wikipedia.py +++ b/bot/exts/evergreen/wikipedia.py @@ -28,7 +28,7 @@ class WikipediaCog(commands.Cog): page = [] search_results = data["query"]["search"] - if len(search_results) == 0: + if not search_results: return None # we dont like "may refere to" pages. -- cgit v1.2.3