mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 09:59:01 +08:00
Use logException where possible
This commit is contained in:
parent
66fbadf2de
commit
60dd130393
@ -175,10 +175,7 @@ class SendMaterialJob(Job):
|
||||
material = LocalMaterial(**m)
|
||||
if material.GUID not in result or material.version > result.get(material.GUID).version:
|
||||
result[material.GUID] = material
|
||||
except ValueError as e:
|
||||
Logger.log("w", "Local material {material_id} has invalid values: {e}".format(
|
||||
material_id = m["id"],
|
||||
e = e
|
||||
))
|
||||
except ValueError:
|
||||
Logger.logException("w", "Local material {} has invalid values.".format(m["id"]))
|
||||
|
||||
return result
|
||||
|
Loading…
x
Reference in New Issue
Block a user