mirror of https://github.com/kivy/kivy.git
Add IOError type of FileNotFoundError on Windows
This commit is contained in:
parent
e18cd352b3
commit
f831055894
6
setup.py
6
setup.py
|
@ -46,7 +46,11 @@ def get_version(filename='kivy/version.py'):
|
|||
GIT_REVISION = check_output(
|
||||
['git', 'rev-parse', 'HEAD']
|
||||
).strip().decode('ascii')
|
||||
except (CalledProcessError, OSError):
|
||||
except (CalledProcessError, OSError, IOError) as e:
|
||||
# CalledProcessError has no errno
|
||||
errno = getattr(e, 'errno', None)
|
||||
if errno != 2 and 'CalledProcessError' not in repr(e):
|
||||
raise
|
||||
GIT_REVISION = "Unknown"
|
||||
|
||||
cnt = (
|
||||
|
|
Loading…
Reference in New Issue