jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/851686 )
Change subject: [fix] Fix UserWarning: Site objects have been created before arguments handled ......................................................................
[fix] Fix UserWarning: Site objects have been created before arguments handled
wrapper script was renamed from pwb.py to wrapper.py; the pwb.py script is a caller script to invoke wrapper.py.
Change-Id: I9fd3a12c806a56206302b156f91fdbeef8198c00 --- M pywikibot/bot.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index d85f473..4a85b17 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -1000,7 +1000,7 @@ except (UnknownFamilyError, UnknownSiteError): pywikibot.exception(exc_info=False) sys.exit(1) - if calledModuleName() == 'pwb': + if calledModuleName() == 'wrapper': pywikibot._sites.clear()
if username:
pywikibot-commits@lists.wikimedia.org