mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +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:
|
||||
return
|
||||
|
||||
with sync_playwright() as p:
|
||||
try:
|
||||
try:
|
||||
with sync_playwright() as p:
|
||||
p.chromium.launch()
|
||||
self.playwright_available = True
|
||||
except Exception:
|
||||
self.playwright_available = False
|
||||
except Exception:
|
||||
self.playwright_available = False
|
||||
|
||||
def get_playwright_instructions(self):
|
||||
if self.playwright_available in (True, None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue