Skip to content

Commit

Permalink
Revert unnecessary change to function doc string.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pijukatel committed Jan 14, 2025
1 parent 3d9b170 commit 7bd985c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crawlee/browsers/_playwright_browser_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def _create_browser_context(
browser_new_context_options: Mapping[str, Any] | None = None,
proxy_info: ProxyInfo | None = None,
) -> BrowserContext:
"""Set browser context.
"""Create a new browser context with the specified proxy settings.
Create context with fingerprints and headers using with `self._fingerprint_generator` if available.
Create context without fingerprints, but with headers based on `self._header_generator` if available.
Expand All @@ -161,7 +161,7 @@ async def _create_browser_context(
browser_new_context_options = dict(browser_new_context_options) if browser_new_context_options else {}

if proxy_info:
if browser_new_context_options['proxy']:
if browser_new_context_options.get('proxy'):
logger.warning("browser_new_context_options['proxy'] overriden by explicit `proxy_info` argument.")

browser_new_context_options['proxy'] = ProxySettings(
Expand Down

0 comments on commit 7bd985c

Please sign in to comment.