Don't allow an empty version_added

pull/53155/head
Matt Martz 6 years ago committed by Matt Clay
parent 8a02f894a6
commit 35f5ca8295

@ -1418,7 +1418,8 @@ class ModuleValidator(Validator):
version_added = StrictVersion( version_added = StrictVersion(
str(details.get('version_added', '0.0')) str(details.get('version_added', '0.0'))
) )
except ValueError: version_added.version
except (ValueError, AttributeError):
version_added = details.get('version_added', '0.0') version_added = details.get('version_added', '0.0')
self.reporter.error( self.reporter.error(
path=self.object_path, path=self.object_path,

Loading…
Cancel
Save