mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:55:56 +08: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
@ -43,7 +43,7 @@ class LayerPolygon:
|
||||
if unknown_types:
|
||||
# Got faulty line data from the engine.
|
||||
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._data = data
|
||||
self._line_widths = line_widths
|
||||
|
Loading…
x
Reference in New Issue
Block a user