aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Anubhav <[email protected]>2020-09-17 16:22:16 +0530
committerGravatar GitHub <[email protected]>2020-09-17 16:22:16 +0530
commit48a4d42c974f39381ef8940b79c906d9646168a9 (patch)
treefa4b390ee5201c6771349b056a0b7ee1473b95b0 /bot
parentcorrected typo (diff)
Changed len(searched_result)-> searched result
Co-authored-by: Thomas Petersson <[email protected]>
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/evergreen/wikipedia.py2
1 files changed, 1 insertions, 1 deletions
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.