Handle situation where DOCS.options is None (#59783)

This commit is contained in:
Matt Martz 2019-07-30 18:08:43 -05:00 committed by Brian Coca
parent 04ec47bdf1
commit c06751fb26

View file

@ -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'])