fixed camera check if no key capabilities exist

xkb
sezanzeb 3 years ago committed by sezanzeb
parent 4c78955c67
commit acdaf5154f

@ -119,7 +119,7 @@ class _GetDevices(threading.Thread):
# skip devices that don't provide buttons that can be mapped # skip devices that don't provide buttons that can be mapped
continue continue
if len(key_capa) == 1 and key_capa[0] == KEY_CAMERA: if key_capa and len(key_capa) == 1 and key_capa[0] == KEY_CAMERA:
# skip cameras # skip cameras
continue continue

Loading…
Cancel
Save