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:
commit
3b23cb6171
3
dist/tools/usb-serial/ttys.py
vendored
3
dist/tools/usb-serial/ttys.py
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user