We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c60124 commit 4ca20ccCopy full SHA for 4ca20cc
1 file changed
monty/exts/python/pypi.py
@@ -203,15 +203,12 @@ async def make_pypi_components(
203
components[0].children.append(
204
disnake.ui.TextDisplay(f"### [{info['name']} v{info['version']}]({info['package_url']})")
205
)
206
- short_about = ""
207
-
208
- summary = disnake.utils.escape_markdown(info["summary"])
209
210
# Summary could be completely empty, or just whitespace.
211
- if summary and not summary.isspace():
212
- short_about += f"{summary}"
+ if (summary := info.get("summary")) and not summary.isspace():
+ short_about = disnake.utils.escape_markdown(summary)
213
else:
214
- short_about += "*No summary provided.*"
+ short_about = "*No summary provided.*"
215
216
# add some padding
217
if not with_description:
0 commit comments