We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents edc9e46 + c4bb932 commit 7da6896Copy full SHA for 7da6896
adafruit_bus_device/i2c_device.py
@@ -177,6 +177,8 @@ def __probe_for_device(self):
177
result = bytearray(1)
178
self.i2c.readfrom_into(self.device_address, result)
179
except OSError:
180
- raise ValueError("No I2C device at address: %x" % self.device_address)
+ # pylint: disable=raise-missing-from
181
+ raise ValueError("No I2C device at address: 0x%x" % self.device_address)
182
+ # pylint: enable=raise-missing-from
183
finally:
184
self.i2c.unlock()
0 commit comments