mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Fix issue with KeyError
This commit is contained in:
@ -445,7 +445,7 @@ def lib_show(library, json_output):
|
|||||||
for author in lib.get("authors", []):
|
for author in lib.get("authors", []):
|
||||||
_data = []
|
_data = []
|
||||||
for key in ("name", "email", "url", "maintainer"):
|
for key in ("name", "email", "url", "maintainer"):
|
||||||
if not author[key]:
|
if not author.get(key):
|
||||||
continue
|
continue
|
||||||
if key == "email":
|
if key == "email":
|
||||||
_data.append("<%s>" % author[key])
|
_data.append("<%s>" % author[key])
|
||||||
|
Reference in New Issue
Block a user