py: Assume v1.0 if version metadata is missing
This commit is contained in:
parent
7c3f55c100
commit
7c2768cc72
1 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,10 @@ class Metadata:
|
||||||
if model_name is not None:
|
if model_name is not None:
|
||||||
metadata.name = model_name
|
metadata.name = model_name
|
||||||
|
|
||||||
|
# If model is missing a version number then assume v1.0 (First Public Release)
|
||||||
|
if metadata.version is None:
|
||||||
|
metadata.version = "v1.0"
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue