Skip to content

Commit 1717827

Browse files
refactor(BrowserConfig): change deprecation warning for 'proxy' parameter to UserWarning
1 parent 4ed33fc commit 1717827

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crawl4ai/async_configs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def __init__(
468468
self.channel = ""
469469
self.chrome_channel = ""
470470
if proxy:
471-
warnings.warn("The 'proxy' parameter is deprecated and will be removed in a future release. Use 'proxy_config' instead.", DeprecationWarning)
471+
warnings.warn("The 'proxy' parameter is deprecated and will be removed in a future release. Use 'proxy_config' instead.", UserWarning)
472472
self.proxy = proxy
473473
self.proxy_config = proxy_config
474474
if isinstance(self.proxy_config, dict):
@@ -478,7 +478,6 @@ def __init__(
478478

479479
if self.proxy and self.proxy_config:
480480
warnings.warn("Both 'proxy' and 'proxy_config' are provided. 'proxy_config' will take precedence.", UserWarning)
481-
print(f"[DEBUG] Both proxy and proxy_config provided. Setting proxy to None.")
482481
self.proxy = None
483482
elif self.proxy:
484483
# Convert proxy string to ProxyConfig if proxy_config is not provided

0 commit comments

Comments
 (0)