We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94084cd commit d6e1d79Copy full SHA for d6e1d79
pymycobot/error.py
@@ -47,7 +47,7 @@ def check_rgb_value(value, exception_class, class_name):
47
for i, v in enumerate(value):
48
if not (0 <= v <= 255):
49
raise exception_class(
50
- f"The RGB value for {class_name} needs to be 0 ~ 255, but received the {rgb_str[i]} is {v}"
+ "The RGB value for {} needs to be 0 ~ 255, but received the {} is {}".format(class_name, rgb_str[i], v)
51
)
52
53
def check_value_type(parameter, value_type, exception_class, _type):
0 commit comments