Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1216766?usp=email )
Change subject: Fix extracting password line ......................................................................
Fix extracting password line
A password line is a tuple with 2-4 entries after evaluating even if BotPassword is given.
Bug: T412074 Change-Id: Iccb764cbba0f36174b5657bffe296a45e1eda094 Signed-off-by: Xqt info@gno.de --- M pywikibot/login.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/login.py b/pywikibot/login.py index 24c794b..eefb39d 100644 --- a/pywikibot/login.py +++ b/pywikibot/login.py @@ -287,7 +287,7 @@ continue
if botpassword: - entry = (entry[0], BotPassword(*entry[1])) + entry = (*entry[:-1], BotPassword(*entry[-1]))
code, family, username, password = ( self.site.code, self.site.family.name)[:4 - entry_len] + entry
pywikibot-commits@lists.wikimedia.org