diff options
| author | 2020-09-17 16:22:16 +0530 | |
|---|---|---|
| committer | 2020-09-17 16:22:16 +0530 | |
| commit | 48a4d42c974f39381ef8940b79c906d9646168a9 (patch) | |
| tree | fa4b390ee5201c6771349b056a0b7ee1473b95b0 | |
| parent | corrected typo (diff) | |
Changed len(searched_result)-> searched result
Co-authored-by: Thomas Petersson <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/wikipedia.py | 2 | 
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.  |