diff --git a/tornado/platform/asyncio.py b/tornado/platform/asyncio.py index b7b63d199..bfe6d22b8 100644 --- a/tornado/platform/asyncio.py +++ b/tornado/platform/asyncio.py @@ -327,7 +327,7 @@ def initialize(self, **kwargs: Any) -> None: # type: ignore kwargs["asyncio_loop"] = loop = asyncio.new_event_loop() try: super().initialize(**kwargs) - except Exception: + except (OSError, RuntimeError, ValueError, TypeError): # If initialize() does not succeed (taking ownership of the loop), # we have to close it. if loop is not None: