MarcoAurelio added a comment.
In T284577#8588228 <https://phabricator.wikimedia.org/T284577#8588228>, @Nirvanchik wrote: > I found a hotfix (workaround) that helped me to log in: > > class TokenWallet(Container): > > def __getitem__(self, key: str) -> str: > ... > > if not self._tokens: > # NEW CODE > if key == 'login': > _tokens = self.site.get_tokens(['login']) > return _tokens['login'] > else: > # OLD CODE > self._tokens = self.site.get_tokens([]) I tested that and it let me log in, but running a script immediately afterwards was not possible with `WARNING: API error readapidenied: You need read permission to use this module.` TASK DETAIL https://phabricator.wikimedia.org/T284577 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, MarcoAurelio Cc: MarcoAurelio, Nirvanchik, Xqt, Mpaa, Dvorapa, pywikibot-bugs-list, RhinosF1, Urbanecm, Aklapper, ChrisBlomTS, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
