refactor(src/window):improve error handling with logging

This commit is contained in:
sankalp committed 2026-06-17 05:21:36 +05:45
1 parent 420688e9a7
commit 9cbde2c58f
26 files changed
+239 -211

No files matched your search

+3 -3
View File
@@ -5,7 +5,7 @@ from fabric.widgets.entry import Entry
from fabric.widgets.label import Label
from fabric.widgets.scrolledwindow import ScrolledWindow
from fabric.widgets.stack import Stack
from fabric.utils import Gtk, GLib, Gdk
from fabric.utils import Gtk, GLib, Gdk, logger
from services.config import config, on_config_change
from utils.utils import setup_cursor_hover, svg_file
@@ -98,8 +98,8 @@ class SettingsEntry(Entry):
try:
if value.isdigit():
value = int(value)
except Exception:
pass
except Exception as e:
logger.error(f"An error occurred: {e}")
config().set(self.config_key, value)
config().save()