Skip to content

Commit

Permalink
actually close the context
Browse files Browse the repository at this point in the history
Signed-off-by: Eiko Wagenknecht <[email protected]>
  • Loading branch information
eikowagenknecht committed Nov 2, 2023
1 parent db2fd7d commit 2ee0ef6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lootscraper/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2ee0ef6

Please sign in to comment.