mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 05:53:18 +08:00
Still raise exception when loading incorrect material file
This commit is contained in:
parent
c13b77d8a1
commit
ddc9da63b8
@ -540,8 +540,7 @@ class XmlMaterialProfile(InstanceContainer):
|
||||
|
||||
validation_message = XmlMaterialValidator.validateMaterialMetaData(meta_data)
|
||||
if validation_message is not None:
|
||||
return
|
||||
# raise Exception("Not valid material profile: %s" % (validation_message))
|
||||
raise Exception("Not valid material profile: %s" % (validation_message))
|
||||
|
||||
property_values = {}
|
||||
properties = data.iterfind("./um:properties/*", self.__namespaces)
|
||||
|
Loading…
x
Reference in New Issue
Block a user