Fix DPI list assertion
This commit is contained in:
parent
d1858f747b
commit
883ed9549d
|
|
@ -182,7 +182,7 @@ def _feature_adjustable_dpi_choices(device):
|
||||||
else:
|
else:
|
||||||
dpi_list.append(val)
|
dpi_list.append(val)
|
||||||
if step:
|
if step:
|
||||||
assert dpi_list == 2, 'Invalid DPI list range: %r' % dpi_list
|
assert len(dpi_list) == 2, 'Invalid DPI list range: %r' % dpi_list
|
||||||
dpi_list = range(dpi_list[0], dpi_list[1] + 1, step)
|
dpi_list = range(dpi_list[0], dpi_list[1] + 1, step)
|
||||||
return _NamedInts.list(dpi_list)
|
return _NamedInts.list(dpi_list)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue