Skip to content

Commit

Permalink
Fix missing f-string in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored and dlech committed Nov 10, 2023
1 parent 2d70d1c commit 441e800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bleak/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ async def write_gatt_char(
characteristic = self.services.get_characteristic(char_specifier)

if not characteristic:
raise BleakError("Characteristic {char_specifier} was not found!")
raise BleakError(f"Characteristic {char_specifier} was not found!")

if response is None:
# if not specified, prefer write-with-response over write-without-
Expand Down

0 comments on commit 441e800

Please sign in to comment.