Skip to content

Commit 4266417

Browse files
author
BiffoBear
committed
Added "pylint: disable=raise-missing-from" to line 180 to supress Pylint warning.
1 parent 62d454c commit 4266417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_bus_device/i2c_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,6 @@ def __probe_for_device(self):
177177
result = bytearray(1)
178178
self.i2c.readfrom_into(self.device_address, result)
179179
except OSError:
180-
raise ValueError("No I2C device at address: 0x%x" % self.device_address)
180+
raise ValueError("No I2C device at address: 0x%x" % self.device_address) # pylint: disable=raise-missing-from
181181
finally:
182182
self.i2c.unlock()

0 commit comments

Comments
 (0)