Skip to content

Commit c57f666

Browse files
authored
Merge pull request #137 from makermelissa/master
Fix None type not iterable issue on Github actions
2 parents e3f892e + 2e34417 commit c57f666

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_platformdetect/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def check_dt_compatible_value(self, value):
6161
otherwise False.
6262
"""
6363
# Match a value like 'qcom,apq8016-sbc':
64-
if value in self.get_device_compatible():
64+
dt_compatible = self.get_device_compatible()
65+
if dt_compatible and value in dt_compatible:
6566
return True
6667

6768
return False

0 commit comments

Comments
 (0)