update from current

This commit is contained in:
2025-12-27 18:46:18 -05:00
parent 1f59077a7f
commit 7247d0e25f
4 changed files with 24 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import re
import logging
from subprocess import check_output
from subprocess import check_output, CalledProcessError
log = logging.getLogger(__name__)
@@ -8,8 +8,8 @@ def main():
dev_re = re.compile(r"Bus\s+(\d+)\s+Device\s+(\d+):\s+ID\s(\w+:\w+)\s(.+)$")
try:
lsusb = check_output("lsusb", encoding='UTF-8')
except OSError as exc:
log.error(exc)
except (CalledProcessError, OSError) as exc:
log.debug(exc)
return {}
devices = []
corsair_aio = None