jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] CFD: Only allow script to be run on enwp ......................................................................
[FIX] CFD: Only allow script to be run on enwp
This script only works on the English Wikipedia, so don't even start if not using that.
Bug: T71015 Change-Id: I3abacb1746b7f02ab654be4a76ccfb2539e10f29 --- M scripts/cfd.py 1 file changed, 6 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/cfd.py b/scripts/cfd.py index 8687735..53a49aa 100644 --- a/scripts/cfd.py +++ b/scripts/cfd.py @@ -17,8 +17,9 @@ __version__ = '$Id$' #
-import pywikibot import re +import pywikibot +from pywikibot import config2 as config import category
# The location of the CFD working page. @@ -69,6 +70,10 @@ """ pywikibot.handle_args(args)
+ if config.family != 'wikipedia' or config.mylang != 'en': + pywikibot.warning('CFD does work only on the English Wikipedia.') + return + page = pywikibot.Page(pywikibot.Site(), cfdPage)
# Variable declarations