Xqt created this task. Xqt added a subscriber: Xqt. Xqt added projects: pywikibot-core, Pywikibot-Other-scripts. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION ``` C:\pwb\GIT\core>pwb.py clean_sandbox -lang:als Preparing to process sandbox page [[Wikipedia:Sandchaschte]] Traceback (most recent call last): File "C:\pwb\GIT\core\pwb.py", line 239, in <module> if not main(): File "C:\pwb\GIT\core\pwb.py", line 233, in main run_python_file(filename, argv, argvu, file_package) File "C:\pwb\GIT\core\pwb.py", line 88, in run_python_file main_mod.__dict__) File ".\scripts\clean_sandbox.py", line 294, in <module> main() File ".\scripts\clean_sandbox.py", line 291, in main bot.run() File ".\scripts\clean_sandbox.py", line 204, in run subst = 'subst:' in translatedContent TypeError: argument of type 'NoneType' is not iterable ```
TASK DETAIL https://phabricator.wikimedia.org/T100392
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: pywikipedia-bugs, Xqt, Aklapper, jayvdb
Xqt added a comment.
bug caused by https://phabricator.wikimedia.org/rPWBC1b2a7e93a1f040c08edb7c3e29c927a35794b...
TASK DETAIL https://phabricator.wikimedia.org/T100392
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: pywikipedia-bugs, Xqt, Aklapper, jayvdb
XZise added a subscriber: XZise. XZise added a comment.
Okay I'd suggest to merge a modified version back in. The modified version first checks site's lang and if there is no such translation it uses site's code (and it should issue a deprecation warning).
TASK DETAIL https://phabricator.wikimedia.org/T100392
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: XZise, Xqt, Aklapper, jayvdb, pywikipedia-bugs
Xqt added a comment.
Please don't. translate() is for L10N and shouldn't have fallback. twtranslate is for i18n and has fallback at least to 'en' which always work.
TASK DETAIL https://phabricator.wikimedia.org/T100392
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: XZise, Xqt, Aklapper, jayvdb, pywikipedia-bugs
XZise added a comment.
If you look in https://gerrit.wikimedia.org/r/#/c/213794/1 I actually didn't touch translate.
TASK DETAIL https://phabricator.wikimedia.org/T100392
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: XZise, Xqt, Aklapper, jayvdb, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org