Skip to content

Commit d6e1d79

Browse files
committed
fix bug
1 parent 94084cd commit d6e1d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymycobot/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def check_rgb_value(value, exception_class, class_name):
4747
for i, v in enumerate(value):
4848
if not (0 <= v <= 255):
4949
raise exception_class(
50-
f"The RGB value for {class_name} needs to be 0 ~ 255, but received the {rgb_str[i]} is {v}"
50+
"The RGB value for {} needs to be 0 ~ 255, but received the {} is {}".format(class_name, rgb_str[i], v)
5151
)
5252

5353
def check_value_type(parameter, value_type, exception_class, _type):

0 commit comments

Comments
 (0)