Skip to content

Commit

Permalink
Try to prevent findGitHash from ever returning None
Browse files Browse the repository at this point in the history
  • Loading branch information
eminence committed Jun 2, 2014
1 parent 5427b28 commit a7aab9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions overviewer_core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7aab9d

Please sign in to comment.