allow empty package description
@@ -32,7 +32,8 @@ for pkg in os.listdir(PKG_PATH):
if not path.isdir(path.join(PKG_PATH, pkg)):
continue
print(f'Processing package {pkg} ...')
- desc = get_pkg_description(pkg).replace('\n', ' ')
+ desc = (get_pkg_description(pkg)
+ or 'No package description.').replace('\n', ' ')
res += '- [**`{root}/{sub}/{pkg}`**]({sub}/{pkg}) \n *{desc}*\n\n'.format_map({
'root': ROOT_PKG,
'sub': PKG_PATH,
