Skip to content

Commit

Permalink
Simplified debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
QIN2DIM committed Oct 5, 2023
1 parent 31b7990 commit 90bf9d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion hcaptcha_challenger/onnx/modelhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def flush_runtime_assets(self, upgrade: bool = False):

# Request assets index from remote repository
if upgrade is True or not assets_paths or is_outdated:
logger.debug(f"Pulling Assets index file", url=self.release_url)
try:
resp = httpx.get(self.release_url, timeout=3)
data = resp.json()[0]
Expand Down
7 changes: 1 addition & 6 deletions tests/test_normal_playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,4 @@ async def test_normal_instance():
probe = list(agent.qr.requester_restricted_answer_set.keys())
question = agent.qr.requester_question
print(f">> {pth} - Challenge Result: {result} - {question=} {probe=}")
if result in [agent.status.CHALLENGE_BACKCALL]:
await page.wait_for_timeout(500)
fl = page.frame_locator(agent.HOOK_CHALLENGE)
await fl.locator("//div[@class='refresh button']").click()
elif result in [agent.status.CHALLENGE_SUCCESS]:
return
assert result

0 comments on commit 90bf9d6

Please sign in to comment.