don't die if there is no version.py

This commit is contained in:
ander 2020-10-14 02:05:17 +03:00
parent fdc1ab93e9
commit 86057cef19
1 changed files with 5 additions and 2 deletions

View File

@ -24,10 +24,13 @@ import os
import hashlib
import cdist.log
import cdist.version
VERSION = cdist.version.VERSION
try:
import cdist.version
VERSION = cdist.version.VERSION
except ModuleNotFoundError:
VERSION = 'from git'
BANNER = """
.. . .x+=:. s