mirror of
https://github.com/huggingface/lerobot.git
synced 2026-06-27 21:27:21 +00:00
f5cc9f5963
inspect_job's status.stage is an enum (with .value) in some huggingface_hub versions and a plain str in others. The poller assumed the enum shape, raising "'str' object has no attribute 'value'" on resume for users on the str-returning version. Read it via getattr(..., "value", ...) so both shapes work, and parametrize the poll test over enum and str stages so the str case is actually exercised (the old mock only ever simulated the enum). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>