mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-04-11 08:52:04 -07:00
Merge e008580521 into 95cc4489d0
This commit is contained in:
commit
7b358f0493
1 changed files with 5 additions and 1 deletions
|
|
@ -26,7 +26,11 @@ class Camoufox(PlaywrightContextManager):
|
|||
|
||||
def __enter__(self) -> Union[Browser, BrowserContext]:
|
||||
super().__enter__()
|
||||
try:
|
||||
self.browser = NewBrowser(self._playwright, **self.launch_options)
|
||||
except camoufox.exceptions.InvalidProxy as e:
|
||||
super().__exit__(camoufox.exceptions.InvalidProxy, e, None)
|
||||
raise
|
||||
return self.browser
|
||||
|
||||
def __exit__(self, *args: Any):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue