Skip to content

Commit a34b3e5

Browse files
committed
fix test
1 parent 0ee368f commit a34b3e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.generator/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def _get_new_library_config(request_data: Dict) -> Dict:
186186
return library_config
187187
return {}
188188

189+
189190
def _get_library_version(library_id: str, repo: str) -> str:
190191
"""Gets the library version from its gapic_version.py file.
191192
@@ -218,7 +219,7 @@ def _add_new_library_version(
218219
library_id(str): The id of the library.
219220
repo(str): The path to the repository.
220221
"""
221-
if len(library_config["version"]) == 0:
222+
if "version" not in library_config or not library_config["version"]:
222223
library_config["version"] = _get_library_version(library_id, repo)
223224

224225

0 commit comments

Comments
 (0)