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:
digitalfrost 2022-08-23 20:01:47 +02:00 committed by GitHub
parent 1c3479c9fc
commit e9172b10af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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