mirror of
https://github.com/aclist/dztui.git
synced 2026-11-18 07:42:02 +01:00
chore: clear linting errors
This commit is contained in:
1 parent
d5e54c0488
commit
730e108cea
3 files changed
+5
-3
No files matched your search
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user