Skip to content

Commit

Permalink
Catch LookupError (#5269)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard authored Apr 5, 2024
1 parent 0a0986b commit 6d118c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conda_build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
from setuptools_scm import get_version

__version__ = get_version(root="..", relative_to=__file__)
except (ImportError, OSError):
except (ImportError, OSError, LookupError):
# ImportError: setuptools_scm isn't installed
# OSError: git isn't installed
# LookupError: setuptools_scm unable to detect version
# Conda-build abides by CEP-8 which specifies using CalVer, so the dev version is:
# YY.MM.MICRO.devN+gHASH[.dirty]
__version__ = "0.0.0.dev0+placeholder"
Expand Down

0 comments on commit 6d118c2

Please sign in to comment.