Skip to content

Commit

Permalink
fix KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Feb 18, 2020
1 parent 5e47e0b commit f2e0c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psutil/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f2e0c98

Please sign in to comment.