From d6a234e2875a5ffe2fc9d7fb1a5879f681769764 Mon Sep 17 00:00:00 2001 From: Tekktrik Date: Thu, 11 May 2023 08:00:10 -0400 Subject: [PATCH] Linted per pre-commit --- adafruit_fxas21002c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_fxas21002c.py b/adafruit_fxas21002c.py index c307ee1..aa5622a 100644 --- a/adafruit_fxas21002c.py +++ b/adafruit_fxas21002c.py @@ -123,7 +123,7 @@ def __init__( GYRO_RANGE_1000DPS, GYRO_RANGE_2000DPS, ): - raise Exception("gyro_range option selected is not a valid option") + raise ValueError("gyro_range option selected is not a valid option") self._gyro_range = gyro_range self._device = i2c_dev.I2CDevice(i2c, address) # Check for chip ID value.