Skip to content

Commit

Permalink
[apps/browser] fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Sep 12, 2024
1 parent d25283c commit bee3e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/browser/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from sitefind import site_find
from siteuse import site_use

async def take_screenshot(page, step):
async def take_screenshot(page):
await asyncio.sleep(2)
await page.screenshot({'path': "screenshot.png"})
shutil.copy("screenshot.png", f"storage/screenshot-{int(time.time())}.png")
Expand Down Expand Up @@ -51,7 +51,7 @@ async def main():

await local_vars['dynamic_async_func'](page)

await take_screenshot(page, i)
await take_screenshot(page)
h9.input()
except Exception as e:
print(f"Failed to use browser:\n```\n{e}\n```\n")
Expand Down

0 comments on commit bee3e8c

Please sign in to comment.