mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-11 01:10:37 +02:00
fallback if info and doc items don't exist
This commit is contained in:
@ -297,7 +297,10 @@ def parser_info(parser_mod_name: str, documentation: bool = False) -> Dict:
|
||||
info_dict['plugin'] = True
|
||||
|
||||
if documentation:
|
||||
info_dict['documentation'] = parser_mod.__doc__
|
||||
docs = parser_mod.__doc__
|
||||
if not docs:
|
||||
docs = 'No documentation available.\n'
|
||||
info_dict['documentation'] = docs
|
||||
|
||||
return info_dict
|
||||
|
||||
|
Reference in New Issue
Block a user