Skip to content

Commit 57bef48

Browse files
authored
Merge pull request #21 from gpongelli/patch-3
exception message is a f-string
2 parents 23466fa + 070934c commit 57bef48

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)