From 8ec4f694f990a191b1e44a7ca950eb92002067f3 Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Wed, 28 Jun 2023 02:54:33 +0200 Subject: [PATCH] fix pylint/black --- pesterchum.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pesterchum.py b/pesterchum.py index 1039bea..b3d7ca4 100755 --- a/pesterchum.py +++ b/pesterchum.py @@ -2003,14 +2003,16 @@ class PesterWindow(MovingWindow): # ~lisanne : loads fonts from the `main/fonts` key in a theme # Note that this wont load fonts from inherited themes # that seems fine imo, esp since u could still load them through `$path/../inheritedtheme/somefont.ttf` - PchumLog.debug("Loading font " + font_path) + PchumLog.debug("Loading font %s", font_path) fontID = QtGui.QFontDatabase.addApplicationFont(font_path) if fontID == -1: - PchumLog.error("Failed loading font: " + font_path) - # TODO? Maybe make this spawn an error popup + PchumLog.error("Failed loading font: %s", font_path) + # TODO? Maybe make this spawn an error popup else: PchumLog.debug( - f"Font families: {(QtGui.QFontDatabase.applicationFontFamilies(fontID))} (id: {fontID})" + "Font families: %s (id: %s)", + QtGui.QFontDatabase.applicationFontFamilies(fontID), + fontID, ) self.resize(*theme["main/size"])