Skip to content

Commit b52a807

Browse files
committed
fix: version compatible.
1 parent 39867af commit b52a807

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymycobot/error.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def check_boolean(b):
6565

6666

6767
def check_range(v, ra):
68-
if ra[0] <= v <= ra[1]:
68+
min, max = ra
69+
if min <= v <= max:
6970
return True
7071
else:
7172
return False

0 commit comments

Comments
 (0)