zephyrproject-rtos / python-devicetree

Python devicetree library
15 stars 4 forks source link

edtlib: fix possible AttributeError in Property.description #2

Closed dottspina closed 1 year ago

dottspina commented 1 year ago

Attempting to access the property Property.description when Property.spec.description is None would raise:

AttributeError: 'NoneType' object has no attribute 'strip'.

Known affected properties:

This patch checks the PropertySpec.description attribute before calling strip().

Thanks.

-- chris

dottspina commented 1 year ago

It appears zephyr/scripts/dts is still the main repo for these libraries: should I instead propose this PR directly to the zephyr project ?

Thanks.

-- chris

mbolivar-nordic commented 1 year ago

should I instead propose this PR directly to the zephyr project ?

Yes, this is just a mirror. Thank you.