Skip to content

Commit

Permalink
Simplify try except
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Sep 23, 2024
1 parent dc3bf9d commit 3fc6469
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/adios4dolfinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@

meta = metadata("adios4dolfinx")
__version__ = meta["Version"]
try:
__author__ = meta["Author"]
except KeyError:
pass
__author__ = meta.get("Author", "")
__license__ = meta["License"]
__email__ = meta["Author-email"]
__program_name__ = meta["Name"]
Expand Down

0 comments on commit 3fc6469

Please sign in to comment.