1
0
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:
Kelly Brazil
2022-03-14 12:17:18 -07:00
parent ff9527a098
commit 9e80fd2b97
2 changed files with 15 additions and 11 deletions

View File

@ -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