Skip to content

Commit 700a64a

Browse files
committed
MAINT: Add version fallback if not available
1 parent 9babff0 commit 700a64a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

smriprep/__about__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
Base module variables
2525
"""
2626

27-
from ._version import __version__
27+
try:
28+
from ._version import __version__
29+
except ImportError:
30+
__version__ = "0+unknown"
2831

2932
__copyright__ = "Copyright 2019, Center for Reproducible Neuroscience, Stanford University"
3033
__credits__ = [

0 commit comments

Comments
 (0)