tools: handle an empty quirks list in the libinput recording

Fixes: 548279abee ("tools: store virtual property in recordings")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1243>
This commit is contained in:
Peter Hutterer 2025-06-23 14:08:56 +10:00 committed by Marge Bot
parent a2694738cb
commit 65e7cd5953

View file

@ -317,7 +317,7 @@ def setup_quirks(recording):
overrides = None
quirks = []
for d in devices:
qs = d.get("quirks", [])
qs = d.get("quirks") or []
if not any(q.startswith("AttrIsVirtual=") for q in qs):
try:
is_virtual = d["udev"]["virtual"]