Browse Source

fix missing version.py detection for python3.5

Fabian Peter Hammerle 3 weeks ago
parent
commit
63f6f37e28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      freesurfer_surface/__init__.py

+ 1 - 1
freesurfer_surface/__init__.py

@@ -50,7 +50,7 @@ import numpy
 
 try:
     from freesurfer_surface.version import __version__
-except ModuleNotFoundError:
+except ImportError:  # ModuleNotFoundError not available in python<3.6
     # package is not installed
     __version__ = None