Skip to content

Commit 18709ca

Browse files
solomonneascodex
andcommitted
fix(run): catch futures timeout on Python 3.10
Co-Authored-By: Codex <codex@openai.com>
1 parent 1ead0ce commit 18709ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/brigade/seat_health.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import tempfile
1616
import threading
1717
import time
18+
from concurrent.futures import TimeoutError as FuturesTimeoutError
1819
from concurrent.futures import ThreadPoolExecutor, as_completed
1920
from dataclasses import dataclass, replace
2021
from datetime import datetime, timezone
@@ -268,7 +269,7 @@ def probe_roster(
268269
results[name] = future.result()
269270
except Exception as exc: # adapter bugs must be receipted, not crash doctor
270271
results[name] = _exception_result(name, roster, self._clock(), self._wall_clock(), exc)
271-
except TimeoutError:
272+
except FuturesTimeoutError:
272273
pass
273274
for future, name in futures.items():
274275
if name not in results:

0 commit comments

Comments
 (0)