aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/wikipedia.py
diff options
context:
space:
mode:
authorGravatar Anubhav <[email protected]>2020-09-17 16:33:45 +0530
committerGravatar GitHub <[email protected]>2020-09-17 16:33:45 +0530
commit2c532e0f5eeb988a09622eb77b80dea9a6076ca0 (patch)
tree6133b262a60c24c99ee9abe0f5c678fa3f886e66 /bot/exts/evergreen/wikipedia.py
parentchanged title is None to not titles (diff)
Removed unnecessary pass
Co-authored-by: Thomas Petersson <[email protected]>
Diffstat (limited to 'bot/exts/evergreen/wikipedia.py')
-rw-r--r--bot/exts/evergreen/wikipedia.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py
index 127fab47..eb74aee9 100644
--- a/bot/exts/evergreen/wikipedia.py
+++ b/bot/exts/evergreen/wikipedia.py
@@ -34,9 +34,7 @@ class WikipediaCog(commands.Cog):
# Ignore pages with "may refer to"
for search_result in search_results:
log.info("trying to append titles")
- if "may refer to" in search_result["snippet"]:
- pass
- else:
+ if "may refer to" not in search_result["snippet"]:
page.append(search_result["title"])
log.info("Finished appending titles")
return page