If no version_added is found, we should assume the string 0.0 instead of the int 0
This commit is contained in:
parent
8c6c2caf61
commit
99158a6a89
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ class ModuleValidator(Validator):
|
|||
|
||||
def _check_version_added(self, doc):
|
||||
try:
|
||||
version_added = StrictVersion(doc.get('version_added', 0))
|
||||
version_added = StrictVersion(doc.get('version_added', '0.0'))
|
||||
except ValueError:
|
||||
self.errors.append('version_added is not a valid version '
|
||||
'number: %s' % version_added)
|
||||
|
|
Loading…
Reference in a new issue