import asyncio import logging from app.main_server import Server if __name__ == "__main__": obj_server = Server() try: asyncio.run(obj_server.start_server()) except asyncio.exceptions.CancelledError: pass except Exception as e: logging.critical(f"Global error: {e}")