Handle situation where DOCS.options is None (#59783)
This commit is contained in:
parent
04ec47bdf1
commit
c06751fb26
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue