commit | 371a83b9d99d09e29475dc92d18d420461a0c8d6 | [log] [tgz] |
---|---|---|
author | Jordan Yates <jordan.yates@data61.csiro.au> | Sat Apr 17 17:03:49 2021 +1000 |
committer | Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> | Fri Apr 30 15:16:02 2021 +0200 |
tree | 94e6e86b70e6ead491b9165323dbc142a5c3c751 | |
parent | 29c838ed1dc9aa2520051b670d387b3d4d02187c [diff] |
scripts: gen_handles.py: initialize handle.device Initialize `handle.device` to `None` so that the assert after the matching has a chance to catch errors. Without this, a failed match will raise an exception on the line above as it attempts to get a property that doesn't exist. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>