summaryrefslogtreecommitdiffstats
path: root/freestyle_hid
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2021-05-16 18:56:59 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2021-05-16 18:56:59 +0200
commit465ff4767333ba57ba10815b6860f896c2217eff (patch)
treea92167224d974b2831b09fc28dc2668f4ab49d42 /freestyle_hid
parentRun pre-commit autoupdate. (diff)
downloadfreestyle-hid-465ff4767333ba57ba10815b6860f896c2217eff.tar
freestyle-hid-465ff4767333ba57ba10815b6860f896c2217eff.tar.gz
freestyle-hid-465ff4767333ba57ba10815b6860f896c2217eff.tar.bz2
freestyle-hid-465ff4767333ba57ba10815b6860f896c2217eff.tar.lz
freestyle-hid-465ff4767333ba57ba10815b6860f896c2217eff.tar.xz
freestyle-hid-465ff4767333ba57ba10815b6860f896c2217eff.tar.zst
freestyle-hid-465ff4767333ba57ba10815b6860f896c2217eff.zip
Diffstat (limited to '')
-rwxr-xr-xfreestyle_hid/tools/extract_chatter.py5
1 files changed, 4 insertions, 1 deletions
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.")