Skip to content

Commit

Permalink
[BUGFIX]: Optional post_scripts on scrape_preview
Browse files Browse the repository at this point in the history
  • Loading branch information
amadolid committed Jul 16, 2024
1 parent 8722eea commit c2da4a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jaseci_ai_kit/jac_misc/jac_misc/scraper/async_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ async def scrape_preview(page: dict, target: str = None):
browser = await aspw.chromium.launch()
b_page = await browser.new_page()
pg_goto = page.get("goto") or {}
post_scripts = pg_goto.pop("post_scripts") or []
post_scripts = pg_goto.pop("post_scripts", None) or []

ws.custom_notify_client(
target,
Expand Down
2 changes: 1 addition & 1 deletion jaseci_ai_kit/jac_misc/jac_misc/scraper/sync_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def scrape_preview(page: dict, target: str):
browser = spw.chromium.launch()
b_page = browser.new_page()
pg_goto = page.get("goto") or {}
post_scripts = pg_goto.pop("post_scripts") or []
post_scripts = pg_goto.pop("post_scripts", None) or []

custom_notify_client(
target,
Expand Down

0 comments on commit c2da4a7

Please sign in to comment.