jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1334737?usp=email )
Change subject: maxlag: Include the site in maxlag retry errors
......................................................................
maxlag: Include the site in maxlag retry errors
Change-Id: Idc069abee2943b0349dfea4fd2f29b8be86a4dd7
---
M pywikibot/data/api/_requests.py
1 file changed, 4 insertions(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py
index e1ed5cf..ddd99a6 100644
--- a/pywikibot/data/api/_requests.py
+++ b/pywikibot/data/api/_requests.py
@@ -1226,7 +1226,10 @@
except TypeError:
raise RuntimeError(result)
- msg = 'Maximum retries attempted due to maxlag without success.'
+ msg = (
+ f'Maximum retries attempted due to maxlag on {self.site} without'
+ ' success.'
+ )
if TEST_RUNNING:
raise unittest.SkipTest(msg)
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1334737?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Idc069abee2943b0349dfea4fd2f29b8be86a4dd7
Gerrit-Change-Number: 1334737
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]