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
pywikibot-commits@lists.wikimedia.org