refactor: log swallowed exceptions across src/

Replace silent swallow-excepts (pass/return/continue) with
logger.warning recording the caught error, preserving behaviour.
This commit is contained in:
sankalp committed 2026-07-14 13:02:21 +05:45
1 parent c0a4b1b792
commit f72542a231
49 files changed
+1004 -363

No files matched your search

+5 -2
View File
@@ -1,4 +1,4 @@
from fabric.utils import Gdk, GLib
from fabric.utils import Gdk, GLib, logger
from fabric.widgets.box import Box
from fabric.widgets.button import Button
from fabric.widgets.entry import Entry
@@ -273,7 +273,10 @@ class WiFiPasswordDialog(Window):
self.password_entry.grab_focus()
self.password_entry.select_region(0, -1)
return False
except Exception:
except Exception as e:
logger.warning(
f"[wifi_password_dialog] self.password_entry.grab_focus() failed: {e}"
)
return False
def destroy_dialog(self):