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:
49 files changed
+1004
-363
No files matched your search
+2
-2
@@ -94,8 +94,8 @@ def main():
|
||||
for m in css_monitors:
|
||||
try:
|
||||
m.cancel()
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as e:
|
||||
logger.warning(f"[main] m.cancel() failed: {e}")
|
||||
|
||||
atexit.register(cleanup_css_monitors)
|
||||
|
||||
|
||||
Reference in new issue
Block a user