Skip to content

Commit 070934c

Browse files
authored
exception message is a f-string
1 parent 23466fa commit 070934c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ina260.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def __init__(self, i2c_bus: I2C, address: int = 0x40) -> None:
186186

187187
if self._device_id != self.INA260_ID:
188188
raise RuntimeError(
189-
"Failed to find INA260 ID, read {self._device_id} while expected {self.INA260_ID}"
189+
f"Failed to find INA260 ID, read {self._device_id} while expected {self.INA260_ID}"
190190
" - check your wiring!"
191191
)
192192

0 commit comments

Comments
 (0)