Skip to content

Commit f420781

Browse files
committed
Fix: break the versions loop when cloned
1 parent dd27f55 commit f420781

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

generate.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@
3434
except GitCommandError:
3535
print(f'failed to clone {language} {branch}')
3636
continue
37-
completion = merge_and_scan_path(
38-
clone_path,
39-
pot_path=Path(clones_dir, 'cpython/Doc/build/gettext'),
40-
hide_reserved=False,
41-
api_url='',
42-
).completion
37+
else:
38+
break
39+
completion = merge_and_scan_path(
40+
clone_path, pot_path=Path(clones_dir, 'cpython/Doc/build/gettext'), hide_reserved=False, api_url=''
41+
).completion
4342
completion_progress.append((language, completion))
4443
print(completion_progress[-1])
4544

0 commit comments

Comments
 (0)