Skip to content

Commit

Permalink
fix the way how versions are checked
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 7, 2024
1 parent 9cafacf commit c33ece8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/rvspecfit/desi/desi_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import traceback # noqa: E402
import functools # noqa: E402
import operator # noqa: E402
import importlib # noqa: E402
import logging # noqa: E402
import enum # noqa: E402
from importlib.metadata import version as get_package_version # noqa: E402
import concurrent.futures # noqa: E402
import astropy.table as atpy # noqa: E402
import astropy.io.fits as pyfits # noqa: E402
Expand Down Expand Up @@ -80,7 +80,7 @@ def get_dep_versions():
ret = {}
for curp in DEPEND_PACKAGES:
try:
ret[curp] = importlib.import_module(curp).__version__
ret[curp] = get_package_version(curp)
except ImportError: # this should not really be happening
# but can, and is not worth bailing out
pass
Expand Down

0 comments on commit c33ece8

Please sign in to comment.