Skip to content

Commit

Permalink
Rely on .get for possibly undefined metadata.
Browse files Browse the repository at this point in the history
Closes #977
  • Loading branch information
jaraco committed Jun 25, 2024
1 parent 6fbf880 commit 3253d3e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions twine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
metadata = importlib_metadata.metadata("twine")


__title__ = metadata["name"]
__summary__ = metadata["summary"]
__uri__ = metadata["home-page"]
__version__ = metadata["version"]
__author__ = metadata["author"]
__email__ = metadata["author-email"]
__title__ = metadata.get("name")
__summary__ = metadata.get("summary")
__uri__ = metadata.get("home-page")
__version__ = metadata.get("version")
__author__ = metadata.get("author")
__email__ = metadata.get("author-email")
__license__ = None

0 comments on commit 3253d3e

Please sign in to comment.