From c06751fb26d2b280e7d14e54ae0d8564b527369e Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 30 Jul 2019 18:08:43 -0500 Subject: [PATCH] Handle situation where DOCS.options is None (#59783) --- test/sanity/validate-modules/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sanity/validate-modules/main.py b/test/sanity/validate-modules/main.py index e14e983a3d..febf389bcb 100755 --- a/test/sanity/validate-modules/main.py +++ b/test/sanity/validate-modules/main.py @@ -1257,7 +1257,7 @@ class ModuleValidator(Validator): try: doc_default = None - doc_options_arg = docs.get('options', {}).get(arg, {}) + doc_options_arg = (docs.get('options', {}) or {}).get(arg, {}) if 'default' in doc_options_arg and not is_empty(doc_options_arg['default']): with CaptureStd(): doc_default = _type_checker(doc_options_arg['default'])