Spaces:
Sleeping
Sleeping
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 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
) -> None:
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
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()
|