1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #19011 from maribu/dist/tools/usb-serial/ttys.py

dist/tools/usb-serial: fix exception on missing entries
This commit is contained in:
benpicco 2022-12-05 14:27:42 +01:00 committed by GitHub
commit 3b23cb6171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,9 @@ def filters_match(filters, tty):
"""
for key, regex in filters:
if tty[key] is None:
return False
if not regex.match(tty[key]):
return False