Skip to content

Commit

Permalink
Fix cli error setting color when color has no name (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jan 4, 2022
1 parent 56fe058 commit ca7de8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flux_led/fluxled.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def buf_in(str: str) -> None:
)
name = utils.color_tuple_to_string(options.color)
if name is None:
buf_in()
buf_in("")
else:
buf_in(f"[{name}]")
if any(i < 0 or i > 255 for i in options.color):
Expand Down

0 comments on commit ca7de8d

Please sign in to comment.