Commit c434ee8
authored
fix: check if 'std-ref' exists before removing from classes (#82)
Fixes ValueError when building LaTeX/PDF output where 'std-ref' class
may not be present in inline node classes. This was causing builds to
fail with 'ValueError: list.remove(x): x not in list'.
The fix adds a conditional check before attempting to remove the class,
making the code more defensive and compatible with different Sphinx
build scenarios.
Fixes issue discovered in QuantEcon/continuous_time_mcs CI build:
https://github.com/QuantEcon/continuous_time_mcs/actions/runs/19413054039/job/555372140781 parent b17bb0e commit c434ee8
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments