Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 5, 2024
1 parent 0331db1 commit fc2e0b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py/rvspecfit/desi/desi_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ def get_dep_versions():
# Ideally you need to check that the list here matches the requirements.txt
ret = {}
for curp in packages:
ret[curp] = importlib.import_module(curp).__version__
try:
ret[curp] = importlib.import_module(curp).__version__
except ImportError: # this should not really be happening
# but can, and is not worth bailing out
pass
ret['python'] = str.split(sys.version, ' ')[0]
return ret

Expand Down

0 comments on commit fc2e0b0

Please sign in to comment.