From 35f5ca829557a891072d11e7fe6dd0b8bd339325 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 28 Feb 2019 16:37:38 -0600 Subject: [PATCH] Don't allow an empty version_added --- test/sanity/validate-modules/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sanity/validate-modules/main.py b/test/sanity/validate-modules/main.py index 8d0914f700..e11eb6ea53 100755 --- a/test/sanity/validate-modules/main.py +++ b/test/sanity/validate-modules/main.py @@ -1418,7 +1418,8 @@ class ModuleValidator(Validator): version_added = StrictVersion( str(details.get('version_added', '0.0')) ) - except ValueError: + version_added.version + except (ValueError, AttributeError): version_added = details.get('version_added', '0.0') self.reporter.error( path=self.object_path,