mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Use logException where possible
This commit is contained in:
parent
66fbadf2de
commit
60dd130393
1 changed files with 2 additions and 5 deletions
|
@ -175,10 +175,7 @@ class SendMaterialJob(Job):
|
||||||
material = LocalMaterial(**m)
|
material = LocalMaterial(**m)
|
||||||
if material.GUID not in result or material.version > result.get(material.GUID).version:
|
if material.GUID not in result or material.version > result.get(material.GUID).version:
|
||||||
result[material.GUID] = material
|
result[material.GUID] = material
|
||||||
except ValueError as e:
|
except ValueError:
|
||||||
Logger.log("w", "Local material {material_id} has invalid values: {e}".format(
|
Logger.logException("w", "Local material {} has invalid values.".format(m["id"]))
|
||||||
material_id = m["id"],
|
|
||||||
e = e
|
|
||||||
))
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue