We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3cacfb + 38e74ff commit 9b4cad9Copy full SHA for 9b4cad9
adafruit_platformdetect/__init__.py
@@ -61,8 +61,11 @@ def check_dt_compatible_value(self, value):
61
otherwise False.
62
"""
63
# Match a value like 'qcom,apq8016-sbc':
64
- if value in open('/proc/device-tree/compatible').read():
65
- return True
+ try:
+ if value in open('/proc/device-tree/compatible').read():
66
+ return True
67
+ except FileNotFoundError:
68
+ pass
69
70
return False
71
0 commit comments