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.
1 parent e3cacfb commit 38e74ffCopy full SHA for 38e74ff
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