diff --git a/keymapper/getdevices.py b/keymapper/getdevices.py index 6650f1af..0e339eaa 100644 --- a/keymapper/getdevices.py +++ b/keymapper/getdevices.py @@ -119,7 +119,7 @@ class _GetDevices(threading.Thread): # skip devices that don't provide buttons that can be mapped 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 continue