Attempting to access the Binding.description property when the description is unavailable would raise KeyError: 'description'. Known bindings that won't define a 'description' key in the Binding.raw dictionary include the 'compatible' property's binding of nodes such as /, /soc, /leds or /pwmleds. Note that this may also occur when a proper YAML binding file is available (e.g. pwmleds.yaml). This patch simply substitutes the Binding.raw dictionary indexing with the get() function: will return None and not raise KeyError. Signed-off-by: Chris Duf <chris@openmarl.org> |
||
|---|---|---|
| .. | ||
| src/devicetree | ||
| tests | ||
| .gitignore | ||
| requirements.txt | ||
| setup.py | ||
| tox.ini | ||