fixed try catch and added git to permanent dependency
This commit is contained in:
@ -319,10 +319,9 @@ def system(request):
|
||||
|
||||
secret_key = False if os.getenv('SECRET_KEY') else True
|
||||
|
||||
r = subprocess.check_output(['git', 'show', '-s'], cwd=BASE_DIR)
|
||||
# r = subprocess.check_output(['git', 'show', '-s'], cwd=os.path.join(BASE_DIR, 'recipes', 'plugins', 'enterprise_plugin'))
|
||||
version_info = []
|
||||
try:
|
||||
r = subprocess.check_output(['git', 'show', '-s'], cwd=BASE_DIR)
|
||||
version_info.append({
|
||||
'name': 'Tandoor ' + VERSION_NUMBER,
|
||||
'version': re.sub(r'<.*>', '', r.decode()),
|
||||
|
Reference in New Issue
Block a user