jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/534922 )
Change subject: Fix the must_be decorator function ......................................................................
Fix the must_be decorator function
Regression introduced in Ie729511867340f38de24e28e55bef1d49c1d6b99
Bug: T231263 Change-Id: Ia6eae6bd31c305360a07f4656fc4fe96be89f4a9 --- M pywikibot/site.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Zhuyifei1999: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index a3f3e06..f63c034 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -1315,7 +1315,7 @@ .format(self.sitename)) if right is not None: if right in self.userinfo['rights']: - return + return fn(self, *args, **kwargs) if grp == 'user': self.login(False) elif grp == 'sysop':
pywikibot-commits@lists.wikimedia.org