Skip to content

Commit f35e7b5

Browse files
committed
fix: comparation to unvalid value (null)
1 parent 59061af commit f35e7b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ async def run_custom_agent(
407407

408408
# Initialize global browser if needed
409409
#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)) :
411411
_global_browser = CustomBrowser(
412412
config=BrowserConfig(
413413
headless=headless,
@@ -418,7 +418,7 @@ async def run_custom_agent(
418418
)
419419
)
420420

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)):
422422
_global_browser_context = await _global_browser.new_context(
423423
config=BrowserContextConfig(
424424
trace_path=save_trace_path if save_trace_path else None,

0 commit comments

Comments
 (0)