diff --git a/src/core/widgets/yasb/update_check.py b/src/core/widgets/yasb/update_check.py index 81ee5d8..f9b62bc 100644 --- a/src/core/widgets/yasb/update_check.py +++ b/src/core/widgets/yasb/update_check.py @@ -8,6 +8,7 @@ from PyQt6.QtWidgets import QLabel, QHBoxLayout, QWidget from PyQt6.QtCore import Qt, QThread, pyqtSignal import win32com.client +from settings import DEBUG class UpdateWorker(QThread): windows_update_signal = pyqtSignal(dict) @@ -65,7 +66,8 @@ def run(self): fl += 1 if fl >= len(lines): - logging.error("Invalid winget output format.") + if DEBUG: + logging.warning("Invalid winget output format.") self.winget_update_signal.emit({"count": 0, "names": []}) return