Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
if global args are handled by pwb wrapper a site Object is created and a
Userwarning is given by the called script
C:\pwb\GIT\core>pwb -simulate speedy_delete
WARNING: C:\pwb\GIT\core\pywikibot\bot.py:757: UserWarning: Site objects
have been created before arguments were handled
warn('Site objects have been created before arguments were handled',
The reason is the fix for T261771 <https://phabricator.wikimedia.org/T261771>
which checks for a valid Site if `handle_args()` is called. If this call is
made by `pwb.py` wrapper the called script may again call `handle_args()` and
find a site object in `pywikibot._sites` dict and gives the warning mentioned
above.
TASK DETAIL
https://phabricator.wikimedia.org/T264591
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, JohnsonLee01, SHEKH, Dijkstra, Khutuck,
Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus,
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs