Skip to content

Commit

Permalink
Merge "cleanup: remove unused 'error' parameter from History.log() me…
Browse files Browse the repository at this point in the history
…thod"
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Nov 29, 2024
2 parents d65d4a8 + 61aa6eb commit 96c7abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/weblinkchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)]

Expand Down

0 comments on commit 96c7abb

Please sign in to comment.