Try to prevent findGitHash from ever returning None
This commit is contained in:
@@ -43,6 +43,7 @@ def findGitHash():
|
|||||||
line = p.stdout.readlines()[0].strip()
|
line = p.stdout.readlines()[0].strip()
|
||||||
if line and len(line) == 40 and all(c in hexdigits for c in line):
|
if line and len(line) == 40 and all(c in hexdigits for c in line):
|
||||||
return line
|
return line
|
||||||
|
return "unknown"
|
||||||
except Exception:
|
except Exception:
|
||||||
try:
|
try:
|
||||||
import overviewer_version
|
import overviewer_version
|
||||||
|
|||||||
Reference in New Issue
Block a user