Skip to content

Commit 638b0c5

Browse files
authored
fix(1.14): do not trigger playwright install message for deps (microsoft#883)
1 parent 79f02e8 commit 638b0c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playwright/_impl/_browser_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async def launch(
8585
try:
8686
return from_channel(await self._channel.send("launch", params))
8787
except Exception as e:
88-
if "npx playwright install" in str(e):
88+
if "npx playwright install " in str(e):
8989
raise not_installed_error(f'"{self.name}" browser was not found.')
9090
raise e
9191

@@ -146,7 +146,7 @@ async def launch_persistent_context(
146146
context._options = params
147147
return context
148148
except Exception as e:
149-
if "npx playwright install" in str(e):
149+
if "npx playwright install " in str(e):
150150
raise not_installed_error(f'"{self.name}" browser was not found.')
151151
raise e
152152

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy