From 0d43b4b5bf558fe721c827008697aae1b48fee92 Mon Sep 17 00:00:00 2001 From: alemidev Date: Mon, 22 Nov 2021 10:48:11 +0100 Subject: [PATCH] bump version, catch exc --- aiocraft/client.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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',