Skip to content

Commit

Permalink
fix: timeout for web client
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Dec 31, 2024
1 parent 1476fbb commit ced0cb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions otterdog/providers/github/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@


class WebClient:
# use 10s as default timeout
_DEFAULT_TIMEOUT = 15000
# use 30s as default timeout
_DEFAULT_TIMEOUT = 30000

def __init__(self, credentials: Credentials):
self.credentials = credentials
Expand Down Expand Up @@ -575,7 +575,7 @@ async def _logout(self, page: Page) -> None:
await page.screenshot(path=screenshot_file)
_logger.warning(f"saved page screenshot to file '{screenshot_file}'")

raise RuntimeError(f"failed to logout via web ui: {e!s}") from e
_logger.warning(f"failed to logout via web ui: {e!s}")
else:
try:
selector = 'input[value = "Sign out"]'
Expand All @@ -586,4 +586,4 @@ async def _logout(self, page: Page) -> None:
await page.screenshot(path=screenshot_file)
_logger.warning(f"saved page screenshot to file '{screenshot_file}'")

raise RuntimeError(f"failed to logout via web ui: {e!s}") from e
_logger.warning(f"failed to logout via web ui: {e!s}")

0 comments on commit ced0cb2

Please sign in to comment.