From a7aab9d1b2de8eb9f74f52f832cd06c0a55ca307 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sun, 1 Jun 2014 21:13:14 -0400 Subject: [PATCH] Try to prevent findGitHash from ever returning None --- overviewer_core/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/overviewer_core/util.py b/overviewer_core/util.py index 6b81d8b..9a74757 100644 --- a/overviewer_core/util.py +++ b/overviewer_core/util.py @@ -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