Skip to content

Commit fb13bc6

Browse files
format check
1 parent 1cb9463 commit fb13bc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stagehand/handlers/act_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import traceback
21
import asyncio
2+
import traceback
33
from typing import Any, Optional, Union
44

55
from stagehand.handlers.act_handler_utils import (
@@ -51,13 +51,13 @@ async def act(self, options: Union[ActOptions, ObserveResult]) -> ActResult:
5151
## TODO - this is a temporary fix to support the timeout_ms field in the options.
5252
## We should update the options to use the timeout_ms field instead of timeoutMs.
5353
timeout_ms = options.get("timeout_ms") or options.get("timeoutMs")
54-
54+
5555
# If timeout is specified, wrap the entire act operation with asyncio.wait_for
5656
if timeout_ms:
5757
try:
5858
return await asyncio.wait_for(
5959
self._perform_act_with_timeout(options),
60-
timeout=timeout_ms / 1000.0 # Convert ms to seconds
60+
timeout=timeout_ms / 1000.0, # Convert ms to seconds
6161
)
6262
except asyncio.TimeoutError:
6363
action_task = options.get("action")

0 commit comments

Comments
 (0)