Exit with 1 if incompatible models found (see #1714)

This commit is contained in:
ines 2018-01-03 21:20:35 +01:00
parent dacfaa2ca4
commit 2c656f90fb
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from __future__ import unicode_literals, print_function
import requests
import pkg_resources
from pathlib import Path
import sys
from ..compat import path2str, locale_escape
from ..util import prints, get_data_path, read_json
@ -62,6 +63,9 @@ def validate(cmd):
"them from the data directory. Data path: {}"
.format(path2str(get_data_path())))
if incompat_models or incompat_links:
sys.exit(1)
def get_model_links(compat):
links = {}