Skip to content

Commit a174ae6

Browse files
authored
Merge pull request #29 from tekktrik/main
Fixed pylint issues
2 parents 8159b49 + d6a234e commit a174ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_fxas21002c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __init__(
123123
GYRO_RANGE_1000DPS,
124124
GYRO_RANGE_2000DPS,
125125
):
126-
raise Exception("gyro_range option selected is not a valid option")
126+
raise ValueError("gyro_range option selected is not a valid option")
127127
self._gyro_range = gyro_range
128128
self._device = i2c_dev.I2CDevice(i2c, address)
129129
# Check for chip ID value.

0 commit comments

Comments
 (0)