From f2e0c98ec0348810afe0e12347991438123c86f1 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Tue, 18 Feb 2020 19:01:02 +0100 Subject: [PATCH] fix KeyError --- psutil/_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psutil/_common.py b/psutil/_common.py index 728d9c625..17b6eeb3b 100644 --- a/psutil/_common.py +++ b/psutil/_common.py @@ -790,7 +790,7 @@ def hilite(s, color="green", bold=False): try: color = colors[color] except KeyError: - raise ValueError("invalid color %r; choose between %r" % ( + raise ValueError("invalid color %r; choose between %s" % ( list(colors.keys()))) attr.append(color) if bold: