jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/816097 )
Change subject: [FIX] Set successful login status for the OAuth case ......................................................................
[FIX] Set successful login status for the OAuth case
Bug: T313571 Change-Id: Iba1e417a8aca013c7af9f835199dc9616af9fd87 --- M pywikibot/site/_apisite.py 1 file changed, 1 insertion(+), 0 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py index 2cc5da7..8c4cdd0 100644 --- a/pywikibot/site/_apisite.py +++ b/pywikibot/site/_apisite.py @@ -366,6 +366,7 @@ try: del self.userinfo # force reload if self.userinfo['name'] == self.user(): + self._loginstatus = _LoginStatus.AS_USER return
# May occur if you are not logged in (no API read permissions).
pywikibot-commits@lists.wikimedia.org