0

Try to prevent findGitHash from ever returning None

This commit is contained in:
Andrew Chin
2014-06-01 21:13:14 -04:00
parent 5427b28ca2
commit a7aab9d1b2

View File

@@ -43,6 +43,7 @@ def findGitHash():
line = p.stdout.readlines()[0].strip()
if line and len(line) == 40 and all(c in hexdigits for c in line):
return line
return "unknown"
except Exception:
try:
import overviewer_version