From f97632202b70bfcc230218aee54f8d9045ce5240 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 6 Jul 2020 15:57:10 +0300 Subject: [PATCH] Fix issue with KeyError --- platformio/commands/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/commands/lib.py b/platformio/commands/lib.py index d08529fd..f635bff1 100644 --- a/platformio/commands/lib.py +++ b/platformio/commands/lib.py @@ -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])