mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:25:56 +08:00
Fix potential key error in printer linter
CURA-10904
This commit is contained in:
parent
e5fb40b48c
commit
6609741323
@ -118,7 +118,7 @@ class Definition(Linter):
|
||||
def _isDefinedInParent(self, key, value_dict, inherits_from):
|
||||
if self._ignore(key, "diagnostic-definition-redundant-override"):
|
||||
return False, None, None, None, None
|
||||
if key not in self._definitions[inherits_from]["overrides"]:
|
||||
if "overrides" not in self._definitions[inherits_from] or key not in self._definitions[inherits_from]["overrides"]:
|
||||
return self._isDefinedInParent(key, value_dict, self._definitions[inherits_from]["inherits"])
|
||||
|
||||
parent = self._definitions[inherits_from]["overrides"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user