File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ async def run_custom_agent(
407
407
408
408
# Initialize global browser if needed
409
409
#if chrome_cdp not empty string nor None
410
- if ((_global_browser is None ) or (cdp_url and cdp_url != "" and cdp_url != null )) :
410
+ if ((_global_browser is None ) or (cdp_url and cdp_url != "" and cdp_url != None )) :
411
411
_global_browser = CustomBrowser (
412
412
config = BrowserConfig (
413
413
headless = headless ,
@@ -418,7 +418,7 @@ async def run_custom_agent(
418
418
)
419
419
)
420
420
421
- if (_global_browser_context is None or (chrome_cdp and cdp_url != "" and cdp_url != null )):
421
+ if (_global_browser_context is None or (chrome_cdp and cdp_url != "" and cdp_url != None )):
422
422
_global_browser_context = await _global_browser .new_context (
423
423
config = BrowserContextConfig (
424
424
trace_path = save_trace_path if save_trace_path else None ,
You can’t perform that action at this time.
0 commit comments