Fix version return of evennia -v

This commit is contained in:
Griatch 2022-11-13 18:17:57 +01:00
parent dab057f5cc
commit 5d0fe2e384

View file

@ -1253,6 +1253,8 @@ def evennia_version():
except (ImportError, AttributeError):
# even if evennia is not found, we should not crash here.
pass
else:
return version
try:
rev = (
check_output("git rev-parse --short HEAD", shell=True, cwd=EVENNIA_ROOT, stderr=STDOUT)