You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webui.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,18 @@ async def run_custom_agent(
171
171
playwright=awaitasync_playwright().start()
172
172
chrome_exe=os.getenv("CHROME_PATH", "")
173
173
chrome_use_data=os.getenv("CHROME_USER_DATA", "")
174
+
175
+
ifnotchrome_exe:
176
+
raiseValueError("You selected use own browser, but CHROME_PATH environment variable is not set. Please set it to your Chrome executable path.")
177
+
178
+
ifnotos.path.exists(chrome_exe):
179
+
raiseValueError(f"Chrome executable not found at {chrome_exe}")
180
+
ifnotchrome_use_data:
181
+
raiseValueError("You selected use own browser, but CHROME_USER_DATA environment variable is not set. Please set it to your Chrome user data directory.")
0 commit comments