Browse Source

Fix None type not iterable issue on Github actions

pull/137/head
Melissa LeBlanc-Williams 4 years ago
parent
commit
2e344175f4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      adafruit_platformdetect/__init__.py

+ 2
- 1
adafruit_platformdetect/__init__.py View File

@ -61,7 +61,8 @@ class Detector:
otherwise False.
"""
# Match a value like 'qcom,apq8016-sbc':
if value in self.get_device_compatible():
dt_compatible = self.get_device_compatible()
if dt_compatible and value in dt_compatible:
return True
return False


|||||||
x
 
000:0
Loading…
Cancel
Save