diff --git a/main.py b/main.py index 4ba47a6..35fe014 100644 --- a/main.py +++ b/main.py @@ -209,7 +209,6 @@ def main() -> NoReturn: if args.health_check == "True": health_status = HealthStatus() - print(f"Health check result: {health_status.last_health_check_result}") sys.exit(0 if health_status.last_health_check_result else 1) else: launcher = BotLauncher() diff --git a/pytmbot/middleware/session_manager.py b/pytmbot/middleware/session_manager.py index 55137cd..c4f1bf2 100644 --- a/pytmbot/middleware/session_manager.py +++ b/pytmbot/middleware/session_manager.py @@ -27,7 +27,6 @@ class SessionManager: """ A class for managing user sessions. """ - _instance: Optional[Self] = None _user_data: dict[int, dict[str, Any]] = field(default_factory=dict) state_fabric: _StateFabric = _StateFabric() @@ -35,7 +34,8 @@ class SessionManager: session_timeout: int = 10 # Session timeout in minutes def __init__(self): - self._SessionManager__user_data = None + # Initialize _user_data as an empty dictionary + self._SessionManager__user_data = self._user_data def __new__(cls) -> SessionManager: """