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

+2 -1
View File
@@ -1,3 +1,4 @@
from fabric.utils import logger
import subprocess
from threading import Timer
from typing import List
@@ -74,7 +75,7 @@ class CaffeinePlugin(PluginBase):
self._schedule_expiration_notification(duration, duration_text)
except Exception as e:
print(f"Error starting inhibit script: {e}")
logger.error(f"Error starting inhibit script: {e}")
return action