mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Use f-string and warn method with Logger
Use f-string and warn method for Logger instead of "Old Style" string formatting. Co-authored-by: Jelle Spijker <spijker.jelle@gmail.com>
This commit is contained in:
parent
1c3479c9fc
commit
e9172b10af
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class LayerPolygon:
|
||||||
if unknown_types:
|
if unknown_types:
|
||||||
# Got faulty line data from the engine.
|
# Got faulty line data from the engine.
|
||||||
for idx in unknown_types:
|
for idx in unknown_types:
|
||||||
Logger.log("w", "Found an unknown line type at: %s", idx)
|
Logger.warn(f"Found an unknown line type at: {idx}")
|
||||||
self._types[idx] = self.NoneType
|
self._types[idx] = self.NoneType
|
||||||
self._data = data
|
self._data = data
|
||||||
self._line_widths = line_widths
|
self._line_widths = line_widths
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue