Skip to content

Commit 29979a5

Browse files
committed
FIX: fix str + float crash in PythonCodingTool by casting timeout to float
1 parent c66c5ae commit 29979a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/eaa/tool/coding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def execute_code(
182182
if not isinstance(code, str):
183183
raise TypeError("code must be a string containing Python source")
184184
prepared_code = self._prepare_source_code(code)
185-
exec_timeout = timeout if timeout is not None else self._default_timeout
185+
exec_timeout = float(timeout) if timeout is not None else self._default_timeout
186186
exec_cwd = cwd or self._working_directory
187187
env = os.environ.copy()
188188
env.update(self._environment)

0 commit comments

Comments
 (0)