We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ee368f commit a34b3e5Copy full SHA for a34b3e5
.generator/cli.py
@@ -186,6 +186,7 @@ def _get_new_library_config(request_data: Dict) -> Dict:
186
return library_config
187
return {}
188
189
+
190
def _get_library_version(library_id: str, repo: str) -> str:
191
"""Gets the library version from its gapic_version.py file.
192
@@ -218,7 +219,7 @@ def _add_new_library_version(
218
219
library_id(str): The id of the library.
220
repo(str): The path to the repository.
221
"""
- if len(library_config["version"]) == 0:
222
+ if "version" not in library_config or not library_config["version"]:
223
library_config["version"] = _get_library_version(library_id, repo)
224
225
0 commit comments