Skip to content

Commit

Permalink
fix: None の属性に対するアクセスを防止
Browse files Browse the repository at this point in the history
  • Loading branch information
tarepan committed Mar 25, 2024
1 parent b439c6a commit c35ebe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_util/generate_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def generate_licenses() -> List[License]:
license=license_json["License"],
text=license_json["LicenseText"],
)
license_names = license.license.split("; ")
license_names_str = license.license or ""
license_names = license_names_str.split("; ")
for license_name in license_names:
if license_name in [
"GNU General Public License v2 (GPLv2)",
Expand Down

0 comments on commit c35ebe4

Please sign in to comment.