Skip to content

Commit 9f7ae58

Browse files
authored
fix logic to find title (#35261)
1 parent cbe9012 commit 9f7ae58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/auto_release/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def check_file_with_packaging_tool(self):
244244
print_check(f"pip install {self.get_whl_package} --force-reinstall")
245245
module = importlib.import_module(self.whole_package_name.replace("-", "."))
246246
title = ""
247-
for item in getattr(module, "__all__"):
247+
for item in getattr(module, "__all__", []):
248248
if item.endswith("Client"):
249249
title = item
250250
break

0 commit comments

Comments
 (0)