Fix version return of evennia -v
This commit is contained in:
parent
13cf10ddff
commit
804e44c3f0
1 changed files with 2 additions and 0 deletions
|
|
@ -1253,6 +1253,8 @@ def evennia_version():
|
||||||
except (ImportError, AttributeError):
|
except (ImportError, AttributeError):
|
||||||
# even if evennia is not found, we should not crash here.
|
# even if evennia is not found, we should not crash here.
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
return version
|
||||||
try:
|
try:
|
||||||
rev = (
|
rev = (
|
||||||
check_output("git rev-parse --short HEAD", shell=True, cwd=EVENNIA_ROOT, stderr=STDOUT)
|
check_output("git rev-parse --short HEAD", shell=True, cwd=EVENNIA_ROOT, stderr=STDOUT)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue