From eab9239dcb0ef7912425f3635e3f3937e1c18ce1 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 13 Oct 2023 14:11:42 +0200 Subject: [PATCH] Fix missing f-string in exception message --- bleak/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bleak/__init__.py b/bleak/__init__.py index 28b5e3bc..cc844e80 100644 --- a/bleak/__init__.py +++ b/bleak/__init__.py @@ -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-