add author and version

This commit is contained in:
Nick Sweeting 2018-06-10 22:02:33 -04:00
parent b5e2ed1d46
commit 9ec1f81bd5
2 changed files with 4 additions and 1 deletions

View file

@ -67,7 +67,7 @@ if not USE_COLOR:
try:
GIT_SHA = run(["git", "rev-list", "-1", "HEAD", "./"], stdout=PIPE, cwd=REPO_DIR).stdout.strip().decode()
except Exception:
GIT_SHA = None
GIT_SHA = 'unknown'
print('[!] Warning, you need git installed for some archiving features to save correct version numbers!')
if sys.stdout.encoding.upper() != 'UTF-8':