chore: clear linting errors

This commit is contained in:
aclist 2025-12-19 20:26:07 +09:00
parent d5e54c0488
commit 730e108cea
3 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,6 @@ import dzgui.api.pefile as PeFile
from dzgui.api.servers import Record, get_rules
from dzgui.const.constants import (
APPID_DAYZ,
APPID_DAYZ_EXP,
LIBRARYFOLDERS_PATH,
WORKSHOP_PATH,
)

View File

@ -9,7 +9,6 @@ from dzgui.config.ipdb import get_ipdb
from dzgui.config.userprefs import UserPrefs
from dzgui.config.xdg import get_xdg_paths, parse_filepaths
from dzgui.const.constants import APP_NAME_LOWER
from dzgui.const.update import ALLOW_UPDATES
from dzgui.init.coords import get_local_coords

View File

@ -1,3 +1,5 @@
import logging
from typing import TYPE_CHECKING
from importlib import resources
@ -8,6 +10,8 @@ import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk # noqa E402
logger = logging.getLogger(__name__)
if TYPE_CHECKING:
from dzgui.controllers.mc import Controller
@ -19,7 +23,7 @@ class Changelog(Gtk.Box):
try:
changelog = resources.read_text(APP_NAME_LOWER, "data/CHANGELOG.md")
except OSError as e:
# TODO: log error
logger.critical(e)
changelog = "Error: Failed to read changelog"
# TODO: should long text be wrapped?