jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/638097 )
Change subject: imported config2 as config and renamed config2 as config
......................................................................
imported config2 as config and renamed config2 as config
Made the changes in the weblinkchecker.py file
Bug: T264564
Change-Id: I79f8c970e6364e9f3680a495a7c2429f92141a95
---
M scripts/weblinkchecker.py
1 file changed, 4 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py
index 8d3a31d..e441b5e 100755
--- a/scripts/weblinkchecker.py
+++ b/scripts/weblinkchecker.py
@@ -128,7 +128,8 @@
import pywikibot
-from pywikibot import comms, i18n, config, pagegenerators, textlib, config2
+from pywikibot import comms, i18n, pagegenerators, textlib
+from pywikibot import config2 as config
from pywikibot.bot import ExistingPageBot, SingleSiteBot, suggest_help
from pywikibot.pagegenerators import (
@@ -192,14 +193,14 @@
mc.timegate_uri = timegate_uri
retry_count = 0
- while retry_count <= config2.max_retries:
+ while retry_count <= config.max_retries:
try:
memento_info = mc.get_memento_info(url, when)
break
except (requests.ConnectionError, MementoClientException) as e:
error = e
retry_count += 1
- pywikibot.sleep(config2.retry_wait)
+ pywikibot.sleep(config.retry_wait)
else:
raise error
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/638097
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I79f8c970e6364e9f3680a495a7c2429f92141a95
Gerrit-Change-Number: 638097
Gerrit-PatchSet: 4
Gerrit-Owner: Homeboy 445 <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-CC: Hazard-SJ <[email protected]>
Gerrit-CC: Mpaa <[email protected]>
Gerrit-CC: Welcome, new contributor! <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits