Skip to content

Commit c02c831

Browse files
authored
fix recent UnboundLocalError (#56)
1 parent ff0c8a0 commit c02c831

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

generate.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get_completion_progress() -> Iterator['LanguageProjectData']:
6262

6363
def get_project_data(
6464
language: Language,
65-
repo: str,
65+
repo: str | None,
6666
languages_built: dict[str, bool],
6767
clones_dir: str,
6868
http: PoolManager,
@@ -75,6 +75,7 @@ def get_project_data(
7575
completion = 0.0
7676
translators_data = TranslatorsData(0, False)
7777
visitors_num = 0
78+
branch = None
7879
return LanguageProjectData(
7980
language,
8081
repo,
@@ -93,7 +94,7 @@ def get_project_data(
9394
class LanguageProjectData:
9495
language: Language
9596
repository: str | None
96-
branch: str
97+
branch: str | None
9798
completion: float
9899
translators: TranslatorsData
99100
visitors: int

0 commit comments

Comments
 (0)