Skip to content

Commit 44bdcf4

Browse files
tekktrikdhalbert
andauthored
Use ValueError instead of RuntimeError
Co-authored-by: Dan Halbert <[email protected]>
1 parent 4a50113 commit 44bdcf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_motor/stepper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(
116116
if self._coil[i].frequency < 1500 and self._coil[i].variable_frequency:
117117
self._coil[i].frequency = 2000
118118
else:
119-
raise RuntimeError(
119+
raise ValueError(
120120
"PWMOut outputs must either be set to at least "
121121
"1500 Hz or allow variable frequency."
122122
)

0 commit comments

Comments
 (0)