Fix issue with KeyError

This commit is contained in:
Ivan Kravets
2020-07-06 15:57:10 +03:00
parent a79e933c37
commit f97632202b

View File

@ -445,7 +445,7 @@ def lib_show(library, json_output):
for author in lib.get("authors", []):
_data = []
for key in ("name", "email", "url", "maintainer"):
if not author[key]:
if not author.get(key):
continue
if key == "email":
_data.append("<%s>" % author[key])