Add more validation for model meta
@@ -169,8 +169,8 @@ def get_model_meta(path):
raise IOError("Could not read meta.json from %s" % meta_path)
meta = read_json(meta_path)
for setting in ['lang', 'name', 'version']:
- if setting not in meta:
- raise ValueError('No %s setting found in model meta.json' % setting)
+ if setting not in meta or not meta[setting]:
+ raise ValueError('No valid '%s' setting found in model meta.json' % setting)
return meta
