SilentWraith commited on
Commit
b5c0489
·
verified ·
1 Parent(s): ed6e2f2

Update app/core/service/playwright/playwright_context.py

Browse files
app/core/service/playwright/playwright_context.py CHANGED
@@ -88,13 +88,13 @@ class AsyncPlaywrightContext:
88
  await page.close()
89
  return html
90
 
91
- async def __aexit__(
92
- self,
93
- typ: type[BaseException] | None,
94
- exc: BaseException | None,
95
- tb: TracebackType | None,
96
- ) -> None:
97
- if self.browser:
98
- await self.browser.close()
99
- if self.playwright:
100
- await self.playwright.stop()
 
88
  await page.close()
89
  return html
90
 
91
+ # async def __aexit__(
92
+ # self,
93
+ # typ: type[BaseException] | None,
94
+ # exc: BaseException | None,
95
+ # tb: TracebackType | None,
96
+ # ) -> None:
97
+ # if self.browser:
98
+ # await self.browser.close()
99
+ # if self.playwright:
100
+ # await self.playwright.stop()