Commit 893320a
faresrafat3
fix(l2): _route_experts accepts both enum and string for domain
The test fixture passes dummy_spec.domain = 'research' (string),
while ArsenalRun passes spec.domain = Domain.RESEARCH (enum).
The function compared domain to string literals in a list, so it
would silently never match an enum.
Use hasattr(value) to handle both shapes; this also makes the
function not blow up on strings.1 parent 46abf85 commit 893320a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments