Skip to content

Commit 7da6896

Browse files
committed
Merge remote-tracking branch 'adafruit/master' into patch-1
2 parents edc9e46 + c4bb932 commit 7da6896

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_bus_device/i2c_device.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ 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: %x" % self.device_address)
180+
# pylint: disable=raise-missing-from
181+
raise ValueError("No I2C device at address: 0x%x" % self.device_address)
182+
# pylint: enable=raise-missing-from
181183
finally:
182184
self.i2c.unlock()

0 commit comments

Comments
 (0)