jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1024933?usp=email )
Change subject: [tests] add site informaton to UserRightsError ......................................................................
[tests] add site informaton to UserRightsError
Change-Id: I8ff7a1db8c87529b10b9e8a15c182dafbd7d732e --- M pywikibot/site/_decorators.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site/_decorators.py b/pywikibot/site/_decorators.py index 6539355..5d1a31b 100644 --- a/pywikibot/site/_decorators.py +++ b/pywikibot/site/_decorators.py @@ -89,7 +89,7 @@ rights = '.' raise UserRightsError( f'User "{self.user()}" does not have required user right ' - f'"{right}"{rights}') + f'"{right}" on site {self}{rights}') return fn(self, *args, **kwargs)
manage_wrapping(callee, fn)