Fix version_added validation when empty.
This commit is contained in:
parent
784360385e
commit
513e0547b9
1 changed files with 1 additions and 1 deletions
|
@ -947,7 +947,7 @@ class ModuleValidator(Validator):
|
|||
return
|
||||
|
||||
try:
|
||||
version_added = StrictVersion(str(doc.get('version_added', '0.0')))
|
||||
version_added = StrictVersion(str(doc.get('version_added', '0.0') or '0.0'))
|
||||
except ValueError:
|
||||
version_added = doc.get('version_added', '0.0')
|
||||
self.reporter.error(
|
||||
|
|
Loading…
Reference in a new issue