validator: Don't crash if the de-aliaser hack fails #137
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This can apparently fall off the bike:
SCHEMA Documentation/devicetree/bindings/processed-schema.json Traceback (most recent call last):
File "/home/konrad/.local/bin/dt-mk-schema", line 38, in
schemas = dtschema.DTValidator(args.schemas).schemas
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/dtschema/validator.py", line 373, in init
self.make_property_type_cache()
File "/usr/lib/python3.12/site-packages/dtschema/validator.py", line 460, in make_property_type_cache
self.props, self.pat_props = get_prop_types(self.schemas)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/dtschema/validator.py", line 195, in get_prop_types
del props[r'^[a-z][a-z0-9-]$']
~~~~~^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '^[a-z][a-z0-9\-]$'
make[2]: *** [Documentation/devicetree/bindings/Makefile:64: Documentation/devicetree/bindings/processed-schema.json] Błąd 1