π OpenHands: AI-Driven Development
fix(logger): remove dead aifc pre-import block (alternative to #14592) (#14593)
Vasco Schiavoe07365975548
diff --git a/openhands/app_server/utils/logger.py b/openhands/app_server/utils/logger.pyindex ee02cb8d98..7802b73dcc 100644--- a/openhands/app_server/utils/logger.py+++ b/openhands/app_server/utils/logger.py@@ -20,15 +20,6 @@ from openhands.sdk.utils.redact import (redact_url_params,)-# Suppress deprecation warnings from dependencies before they're imported-# aifc was removed in Python 3.13 but speech_recognition still references it-with warnings.catch_warnings():- warnings.simplefilter('ignore')- import aifc-- # Stop the linter from deleting the import- _AIFC = aifc.__name__-warnings.filterwarnings('ignore', category=SyntaxWarning, module=r'pydub\.utils')LOG_LEVEL = os.getenv('LOG_LEVEL', 'INFO').upper()