Skip to content

Commit

Permalink
Consider that description may be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul authored and sigmavirus24 committed Oct 31, 2024
1 parent b767402 commit 46bc5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twine/commands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _check_file(
content_type, params = _parse_content_type(description_content_type)
renderer = _RENDERERS.get(content_type, _RENDERERS[None])

if description is None or description.rstrip() == "UNKNOWN":
if not description or description.rstrip() == "UNKNOWN":
warnings.append("`long_description` missing.")
elif renderer:
rendering_result = renderer.render(
Expand Down

0 comments on commit 46bc5dd

Please sign in to comment.