Skip to content
Snippets Groups Projects
Commit dab53f3b authored by Kevin Kuns's avatar Kevin Kuns
Browse files

fix setuptools_scm LookupError bug

If setuptools_scm is installed but gwinc is not called from the gwinc directory, a LookupError was previously thrown. Now the version is set to '?.?.?' in this case.
Apply 1 suggestion(s) to 1 file(s)
clean up patch
parent 05370968
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ except ModuleNotFoundError:
__version__ = setuptools_scm.get_version(fallback_version='?.?.?')
# FIXME: fallback_version is not available in the buster version
# (3.2.0-1)
except (ModuleNotFoundError, TypeError):
except (ModuleNotFoundError, TypeError, LookupError):
__version__ = '?.?.?'
from .ifo import IFOS
from .struct import Struct
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment