mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
tolerate branch idx out of range
Branches can't be deleted at the moment, but this may change in the future.
This commit is contained in:
parent
cb7a483d32
commit
7f2109cf04
1 changed files with 4 additions and 1 deletions
|
@ -1171,7 +1171,10 @@ def extract_update_info(
|
|||
) -> UpdateInfo:
|
||||
"Process branches to determine the updated mod time and min/max versions."
|
||||
branches = info_json["branches"]
|
||||
current = branches[current_branch_idx]
|
||||
try:
|
||||
current = branches[current_branch_idx]
|
||||
except IndexError:
|
||||
current = branches[0]
|
||||
|
||||
last_mod = 0
|
||||
for branch in branches:
|
||||
|
|
Loading…
Reference in a new issue