Skip to content

Commit 433df9a

Browse files
committed
updated linting to ruff
1 parent 9dca643 commit 433df9a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

server/server.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@
3535
browser = Browser(
3636
config=BrowserConfig(
3737
chrome_instance_path=os.environ.get("CHROME_PATH"),
38-
extra_chromium_args=["--no-sandbox", "--disable-gpu", "--disable-software-rasterizer", "--disable-dev-shm-usage", "--remote-debugging-port=9222"],
38+
extra_chromium_args=[
39+
"--no-sandbox",
40+
"--disable-gpu",
41+
"--disable-software-rasterizer",
42+
"--disable-dev-shm-usage",
43+
"--remote-debugging-port=9222",
44+
],
3945
)
4046
)
4147
context = BrowserContext(browser=browser, config=config)
@@ -119,9 +125,9 @@ async def run_browser_task_async(task_id, url, action):
119125
if not await check_browser_health():
120126
task_store[task_id]["status"] = "failed"
121127
task_store[task_id]["end_time"] = datetime.now().isoformat()
122-
task_store[task_id][
123-
"error"
124-
] = "Browser context is unhealthy and could not be reset"
128+
task_store[task_id]["error"] = (
129+
"Browser context is unhealthy and could not be reset"
130+
)
125131
return
126132

127133
# Define step callback function with the correct signature

0 commit comments

Comments
 (0)