Exit with 1 if incompatible models found (see
@@ -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 = {}
