From 61aa6eb9da456b2f1540c3a5a5f906129accfbe8 Mon Sep 17 00:00:00 2001 From: xqt Date: Mon, 25 Nov 2024 18:37:18 +0100 Subject: [PATCH] cleanup: remove unused 'error' parameter from History.log() method Bug: T380693 Change-Id: Iade518b3d24c8bdf470b891f1bc8c9bc569e4099 --- scripts/weblinkchecker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py index 14174b868b..daaa880263 100755 --- a/scripts/weblinkchecker.py +++ b/scripts/weblinkchecker.py @@ -363,7 +363,7 @@ def __init__(self, report_thread, site=None) -> None: # no saved history exists yet, or history dump broken self.history_dict = {} - def log(self, url, error, containing_page, archive_url) -> None: + def log(self, url, containing_page, archive_url) -> None: """Log an error report to a text file in the deadlinks subdirectory.""" if archive_url: error_report = f'* {url} ([{archive_url} archive])\n' @@ -411,7 +411,7 @@ def set_dead_link(self, url, error, page, weblink_dead_days) -> None: pywikibot.warning( f'get_closest_memento_url({url}) failed: {e}') archive_url = None - self.log(url, error, page, archive_url) + self.log(url, page, archive_url) else: self.history_dict[url] = [(page.title(), now, error)]