We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a3bbd commit 552f7f9Copy full SHA for 552f7f9
1 file changed
tion_btle/tion.py
@@ -27,7 +27,7 @@ async def wrapper(*args, **kwargs):
27
if inspect.iscoroutinefunction(f):
28
return await f(*args, **kwargs)
29
return f(*args, **kwargs)
30
- except exc.BleakError as _e:
+ except (exc.BleakError, exc.BleakDBusError) as _e:
31
next_message = "Will try again" if i < retries else "Will not try again"
32
_LOGGER.warning("Got exception: %s. %s", str(_e), next_message)
33
last_warning_exception = _e
0 commit comments