From 229bb8a7b3323e625f3ae79b7bff6b710d43abd3 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Tue, 2 Sep 2025 23:39:33 -0600 Subject: [PATCH] Fixed Minor Macro Issue --- Data/Agent/borealis-agent.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Data/Agent/borealis-agent.py b/Data/Agent/borealis-agent.py index 31c81b2..7927bff 100644 --- a/Data/Agent/borealis-agent.py +++ b/Data/Agent/borealis-agent.py @@ -33,19 +33,12 @@ os.environ.setdefault("QT_LOGGING_RULES", "qt.qpa.*=false;*.debug=false") from qasync import QEventLoop from PyQt5 import QtCore, QtGui, QtWidgets try: - # Swallow Qt warnings like OleInitialize failures on Windows consoles + # Swallow Qt framework messages to keep console clean def _qt_msg_handler(mode, context, message): - # Intentionally suppress all Qt framework messages to keep console clean return QtCore.qInstallMessageHandler(_qt_msg_handler) except Exception: pass -try: - # Pre-initialize OLE to reduce chances of RPC_E_CHANGED_MODE warnings - import ctypes - ctypes.windll.ole32.OleInitialize(0) -except Exception: - pass from PIL import ImageGrab # New modularized components