mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
make test for playwright more robust #791
This commit is contained in:
parent
9d02628cf8
commit
644ec6f964
1 changed files with 4 additions and 4 deletions
|
@ -91,12 +91,12 @@ class Scraper:
|
||||||
if self.playwright_available is not None:
|
if self.playwright_available is not None:
|
||||||
return
|
return
|
||||||
|
|
||||||
with sync_playwright() as p:
|
try:
|
||||||
try:
|
with sync_playwright() as p:
|
||||||
p.chromium.launch()
|
p.chromium.launch()
|
||||||
self.playwright_available = True
|
self.playwright_available = True
|
||||||
except Exception:
|
except Exception:
|
||||||
self.playwright_available = False
|
self.playwright_available = False
|
||||||
|
|
||||||
def get_playwright_instructions(self):
|
def get_playwright_instructions(self):
|
||||||
if self.playwright_available in (True, None):
|
if self.playwright_available in (True, None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue