Skip to content

Commit af72c5c

Browse files
committed
version.py
1 parent 21f688b commit af72c5c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/diffpy/srfit/version.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
#
44
# (c) 2008-2025 The Trustees of Columbia University in the City of New York.
55
# All rights reserved.
6+
# (c) 2026-present The DiffPy Team. All rights reserved.
67
#
7-
# File coded by: Christopher Farrow, Pavol Juhas, and members of the
8-
# Billinge Group.
8+
# File coded by: Christopher Farrow, Pavol Juhas, Caden Myers,
9+
# Simon J. L. Billinge, and members of the DiffPy community.
910
#
1011
# See GitHub contributions for a more detailed list of contributors.
1112
# https://github.com/diffpy/diffpy.srfit/graphs/contributors
@@ -19,8 +20,9 @@
1920
# __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]
2021

2122
# obtain version information
22-
from importlib.metadata import version
23+
from importlib.metadata import PackageNotFoundError, version
2324

24-
__version__ = version("diffpy.srfit")
25-
26-
# End of file
25+
try:
26+
__version__ = version("diffpy.srfit")
27+
except PackageNotFoundError:
28+
__version__ = "unknown"

0 commit comments

Comments
 (0)