Skip to content

Commit 5a70b08

Browse files
committed
scripts: shell: ble_console: Tidy BlueZ communication file
Fixes up ruff reported issues in this file Signed-off-by: Jamie McCrae <[email protected]>
1 parent 8931d53 commit 5a70b08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/shell/ble_console/BlueZ_communication.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, read_handler, message):
4949
def get_bluez_version(self):
5050
bashCommand = 'bluetoothd -v'
5151
process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE)
52-
output, error = process.communicate()
52+
output, _error = process.communicate()
5353
output = output.split('.')
5454
return (int(output[0],10), int(output[1],10))
5555

@@ -145,9 +145,9 @@ def list_objects(self, service = BLUEZ_PATH, object_path = '/'):
145145
self.list_objects(service, new_path)
146146
except dbus.DBusException as e:
147147
if "Not connected" in e.args:
148-
self.display_message("Not connected to " + device)
148+
self.display_message("Not connected to")
149149
elif "Did not receive a reply" in e.args:
150-
self.display_message("Timeout exceeded " + device)
150+
self.display_message("Timeout exceeded")
151151
elif "The name" in e.args[0]:
152152
pass
153153
else:

0 commit comments

Comments
 (0)