mirror of https://github.com/labapart/gattlib
gattlib-py/gattlib/exception: Print 'le-connection-abort-by-local' on related exception
parent
7922810016
commit
7a8d53d817
|
@ -59,8 +59,10 @@ class DBusError(GattlibException):
|
||||||
self.code = code
|
self.code = code
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return f"DBus Error domain={self.domain},code={self.code}"
|
if self.domain == 238 and self.code == 60964:
|
||||||
|
return f"DBus Error: le-connection-abort-by-local"
|
||||||
|
else:
|
||||||
|
return f"DBus Error domain={self.domain},code={self.code}"
|
||||||
|
|
||||||
def handle_return(ret):
|
def handle_return(ret):
|
||||||
if ret == GATTLIB_INVALID_PARAMETER:
|
if ret == GATTLIB_INVALID_PARAMETER:
|
||||||
|
|
Loading…
Reference in New Issue