Commit 5739e0b
Fix TypeError when conda 26.x returns dict from fetch_latest() (#1196)
* Fix TypeError when conda 26.x returns dict from fetch_latest()
In conda 26.x, `subdir_data.repo_fetch.fetch_latest()` returns an
already-parsed dict instead of a JSON string. Add a type check to
handle both cases, maintaining backward compatibility with older
conda versions.
* chore: add news file
* Apply suggestion from @marcoesters
Co-authored-by: Marco Esters <mesters@anaconda.com>
---------
Co-authored-by: Marco Esters <mesters@anaconda.com>1 parent 8b1d7db commit 5739e0b
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments