Remove unnecessary check

This commit is contained in:
Adriane Boyd 2020-06-02 17:41:25 +02:00
parent bbc1836581
commit 75f08ad62d

View File

@ -253,9 +253,7 @@ def get_model_meta(path):
raise ValueError(Errors.E054.format(setting=setting))
if "spacy_version" in meta:
about_major_minor = ".".join(about.__version__.split(".")[:2])
if about_major_minor is not None and not meta["spacy_version"].startswith(
">=" + about_major_minor
):
if not meta["spacy_version"].startswith(">=" + about_major_minor):
# try to simplify version requirements from model meta to vx.x
# for warning message
meta_spacy_version = "v" + ".".join(