From 2ee0ef630b80331db6dd0a5c78b9edf49078321e Mon Sep 17 00:00:00 2001 From: Eiko Wagenknecht Date: Thu, 2 Nov 2023 09:35:04 +0100 Subject: [PATCH] actually close the context Signed-off-by: Eiko Wagenknecht --- src/lootscraper/browser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lootscraper/browser.py b/src/lootscraper/browser.py index 77925a53..222ffbf1 100644 --- a/src/lootscraper/browser.py +++ b/src/lootscraper/browser.py @@ -46,6 +46,8 @@ async def get_browser_context() -> AsyncGenerator[BrowserContext, None]: ) # Milliseconds yield context + + await context.close() except Error: logger.exception("Error in Playwright Chromium context.") finally: