From 465ff4767333ba57ba10815b6860f896c2217eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 16 May 2021 17:56:59 +0100 Subject: Fix tests: DeviceAddress objects cannot be joined. --- freestyle_hid/tools/extract_chatter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/freestyle_hid/tools/extract_chatter.py b/freestyle_hid/tools/extract_chatter.py index b2c16f6..80e9629 100755 --- a/freestyle_hid/tools/extract_chatter.py +++ b/freestyle_hid/tools/extract_chatter.py @@ -109,8 +109,11 @@ def main( if not device_address: possible_addresses = list(session.find_devices_by_ids(_ABBOTT_VENDOR_ID, None)) if len(possible_addresses) > 1: + possible_addresses_str = ", ".join( + str(address) for address in possible_addresses + ) raise click.UsageError( - f"Multiple Abbott devices found, please select one of {','.join(possible_addresses)}" + f"Multiple Abbott devices found, please select one of {possible_addresses_str}" ) elif len(possible_addresses) == 0: raise click.UsageError("No Abbott devices found.") -- cgit v1.2.3