Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 22, 2023
1 parent c04b405 commit f6360b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agixt/extensions/web_playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from Extensions import Extensions
from playwright.async_api import async_playwright, TimeoutError as PlaywrightTimeout


class web_playwright(Extensions):
def __init__(self, **kwargs):
self.commands = {
Expand Down Expand Up @@ -53,7 +54,7 @@ async def scrape_links_with_playwright(self, url: str) -> Union[str, List[str]]:
f"{link_text} ({link_url})" for link_text, link_url in hyperlinks
]
await browser.close()

except Exception as e:
formatted_links = f"Error: {str(e)}"
return formatted_links

0 comments on commit f6360b1

Please sign in to comment.