mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 04:05:58 +08:00
Don't crash when syncing material that has no colour code
Use the colour code for Generic PLA then.
This commit is contained in:
parent
1e49438c03
commit
b2ce1419cf
@ -54,4 +54,4 @@ class ClusterPrinterConfigurationMaterial(BaseModel):
|
||||
"name": "Empty" if self.material == "empty" else "Unknown"
|
||||
}
|
||||
|
||||
return MaterialOutputModel(guid = self.guid, type = material_metadata["material"], brand = material_metadata["brand"], color = material_metadata["color_code"], name = material_metadata["name"])
|
||||
return MaterialOutputModel(guid = self.guid, type = material_metadata["material"], brand = material_metadata["brand"], color = material_metadata.get("color_code", "#ffc924"), name = material_metadata["name"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user