mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue