jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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(-)

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 change 638097. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I79f8c970e6364e9f3680a495a7c2429f92141a95
Gerrit-Change-Number: 638097
Gerrit-PatchSet: 4
Gerrit-Owner: Homeboy 445 <akshitsan13@gmail.com>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-CC: Hazard-SJ <hazardsjwiki@gmail.com>
Gerrit-CC: Mpaa <mpaa.wiki@gmail.com>
Gerrit-CC: Welcome, new contributor! <ssethi@wikimedia.org>
Gerrit-MessageType: merged