Spaces:
Sleeping
Sleeping
Update app/core/service/playwright/playwright_context.py
Browse files
app/core/service/playwright/playwright_context.py
CHANGED
|
@@ -88,12 +88,13 @@ class AsyncPlaywrightContext:
|
|
| 88 |
await page.close()
|
| 89 |
return html
|
| 90 |
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
|
|
|
| 97 |
# if self.browser:
|
| 98 |
# await self.browser.close()
|
| 99 |
# if self.playwright:
|
|
|
|
| 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 |
+
print("task exit")
|
| 98 |
# if self.browser:
|
| 99 |
# await self.browser.close()
|
| 100 |
# if self.playwright:
|