mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 21:17:17 +02:00
Fix #1754: WindowsError is replaced with OSError
This commit is contained in:
parent
811ab0045e
commit
b7893e7319
2 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ def _create_version():
|
|||
print(err)
|
||||
try:
|
||||
version = "%s (rev %s)" % (version, check_output("git rev-parse --short HEAD", shell=True, cwd=root, stderr=STDOUT).strip())
|
||||
except (IOError, CalledProcessError, WindowsError):
|
||||
except (IOError, CalledProcessError, OSError):
|
||||
# ignore if we cannot get to git
|
||||
pass
|
||||
return version
|
||||
|
|
|
|||
|
|
@ -1217,7 +1217,7 @@ def evennia_version():
|
|||
"git rev-parse --short HEAD",
|
||||
shell=True, cwd=EVENNIA_ROOT, stderr=STDOUT).strip()
|
||||
version = "%s (rev %s)" % (version, rev)
|
||||
except (IOError, CalledProcessError, WindowsError):
|
||||
except (IOError, CalledProcessError, OSError):
|
||||
# move on if git is not answering
|
||||
pass
|
||||
return version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue