fix(src/window/osd/components): improve error handling by logging exceptions

To aid debugging and visibility of errors in OSD components.
This commit is contained in:
sankalp committed 2026-06-17 05:21:53 +05:45
1 parent 9cbde2c58f
commit b1b9dcc061
6 files changed
+20 -15

No files matched your search

+3 -2
View File
@@ -1,3 +1,4 @@
from fabric.utils import logger
import math
from fabric.audio import Audio
from utils.utils import svg_file
@@ -105,6 +106,6 @@ class AudioOSDContainer(BaseOSDContainer):
self.audio.disconnect_by_func(self._on_speaker_changed)
if self.audio.speaker:
self.audio.speaker.disconnect_by_func(self._on_speaker_stream_changed)
except Exception:
pass
except Exception as e:
logger.error(f"An error occurred: {e}")
super().destroy()