bump version, catch exc

This commit is contained in:
əlemi 2021-11-22 10:48:11 +01:00
parent f6835709b1
commit 0d43b4b5bf
2 changed files with 3 additions and 1 deletions

View file

@ -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:

View file

@ -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',