chore: clear linting errors

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

No files matched your search

+5 -1
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?