Skip to content

Commit fb49843

Browse files
Copilotmbarbero
andauthored
style: remove redundant retry loop variables in web client
Agent-Logs-Url: https://github.com/eclipse-csi/otterdog/sessions/305839ba-b0c3-4931-b989-8b5354ec0cc8 Co-authored-by: mbarbero <452625+mbarbero@users.noreply.github.com>
1 parent 6592fe2 commit fb49843

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • otterdog/providers/github

otterdog/providers/github/web.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,10 +546,9 @@ async def _goto(self, page: Page, url: str) -> None:
546546
547547
Also, save a screenshot if trace logging is enabled.
548548
"""
549-
status = None
550549
max_retries = self._REPO_DEFAULTS_404_RETRIES
551550
max_attempts = max_retries + 1
552-
for retry_idx in range(max_retries + 1):
551+
for retry_idx in range(max_attempts):
553552
attempt = retry_idx + 1
554553
_logger.trace("loading page '%s'", url)
555554
response = await page.goto(url)

0 commit comments

Comments
 (0)