Skip to content

Commit

Permalink
wikipedia: address Special: namespace nit
Browse files Browse the repository at this point in the history
Co-authored-by: dgw <dgw@technobabbl.es>
  • Loading branch information
SnoopJ and dgw authored Nov 30, 2023
1 parent 9c4c113 commit 64f28a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sopel/builtins/wikipedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ def mw_info(bot, trigger, match=None):
section = unquote(page_info.fragment)

if article.startswith("Special:"):
# The MediaWiki query API does not include pages in the Special:*
# The MediaWiki query API does not include pages in the Special:
# namespace, so there's no point bothering when we know this will error
LOGGER.debug("Ignoring page in Special:* namespace")
LOGGER.debug("Ignoring page in Special: namespace")
return False

if section:
Expand Down Expand Up @@ -375,7 +375,7 @@ def wikipedia(bot, trigger):
return plugin.NOLIMIT

if query.startswith("Special:"):
bot.reply("Sorry, the MediaWiki API doesn't support querying the Special:* namespace")
bot.reply("Sorry, the MediaWiki API doesn't support querying the Special: namespace.")
return False

server = lang + '.wikipedia.org'
Expand Down

0 comments on commit 64f28a2

Please sign in to comment.