jenkins-bot submitted this change.
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.