fix(lint): lint all the things; be more flexible in boards dir

This commit is contained in:
Josh Klar committed 2021-06-20 13:59:59 -07:00
1 parent 7400f43cf8
commit f79e508566
6 files changed
+291 -57

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ class KeyAttrDict(AttrDict):
def __getattr__(self, key):
try:
return super(KeyAttrDict, self).__getattr__(key)
except:
except Exception:
pass
# Modifiers
if key in ('LEFT_CONTROL', 'LCTRL', 'LCTL'):
@@ -514,7 +514,7 @@ class KeyAttrDict(AttrDict):
elif key in ('HID_SWITCH', 'HID'):
make_key(names=('HID_SWITCH', 'HID'), on_press=handlers.hid_switch)
else:
raise ValueError("Invalid key")
raise ValueError('Invalid key')
return self.__getattr__(key)