Skip to content

Commit a88a915

Browse files
committed
lint
1 parent 65ab964 commit a88a915

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_platformdetect/chip.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ def id(self): # pylint: disable=invalid-name,too-many-branches,too-many-return-s
3939
# Special case, if we have an environment var set, we could use FT232H
4040
try:
4141
if os.environ['BLINKA_FT232H']:
42-
from pyftdi.usbtools import UsbTools
43-
count = len( UsbTools.find_all([(0x0403, 0x6014)]) )
42+
from pyftdi.usbtools import UsbTools # pylint: disable=import-error
43+
# look for it based on PID/VID
44+
count = len(UsbTools.find_all([(0x0403, 0x6014)]))
4445
if count == 0:
4546
raise RuntimeError('BLINKA_FT232H environment variable' + \
4647
'set, but no FT232H device found')

0 commit comments

Comments
 (0)