scripts/update-plugin-list: Be liberal in accepted summaries

Misconfigured packages may have a null summary in the PyPI json response.
This commit is contained in:
Jouke Witteveen 2022-11-07 21:00:31 +01:00 committed by GitHub
parent 2f33ea87c8
commit 6aec32163d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,9 @@ def iter_plugins():
last_release = release_date.strftime("%b %d, %Y")
break
name = f':pypi:`{info["name"]}`'
summary = escape_rst(info["summary"].replace("\n", ""))
summary = ""
if info["summary"]:
summary = escape_rst(info["summary"].replace("\n", ""))
yield {
"name": name,
"summary": summary.strip(),