Skip to content
Snippets Groups Projects

fix setuptools_scm LookupError bug

Merged Kevin Kuns requested to merge kevin.kuns/pygwinc:setuptools-bug into master
1 unresolved thread
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • dab53f3b
    fix setuptools_scm LookupError bug · dab53f3b
    Kevin Kuns authored
    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
+ 1
1
@@ -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
Loading