diff --git a/aiocraft/client.py b/aiocraft/client.py index 3ab88d6..f66d40b 100644 --- a/aiocraft/client.py +++ b/aiocraft/client.py @@ -179,6 +179,8 @@ class MinecraftClient(CallbacksHolder, Runnable): await self._play() except ConnectionRefusedError: self._logger.error("Server rejected connection") + except OSError as e: + self._logger.error("Connection error : %s", str(e)) except Exception: self._logger.exception("Exception in Client connection") if self.dispatcher.connected: diff --git a/setup.py b/setup.py index b77d971..6f1b86c 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ with open("requirements.txt") as f: setup( name='aiocraft', - version='0.0.4', + version='0.0.5', description='asyncio-powered headless minecraft client library', url='https://github.com/alemidev/aiocraft', author='alemi',