Commit b168adcd authored by Benjamin Graillot's avatar Benjamin Graillot Committed by Benjamin Graillot
Browse files

0.0.4 Handle OSError

parent 1c3de0ae
......@@ -103,6 +103,12 @@ class IRCClient:
self.reconnect()
else:
return
except OSError as exn:
logger.error(f"OSError: {exn}")
if self.autoreconnect:
self.reconnect()
else:
return
if not buf:
logger.error("Connexion closed by server")
if self.autoreconnect:
......
[tool.poetry]
name = "py_irc"
version = "0.0.3"
version = "0.0.4"
description = "Minimalistic IRC Client library"
# readme = "README.md"
license = "MIT"
......@@ -17,4 +17,4 @@ repository = "https://gitlab.crans.org/ninjabot/pyirc"
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
\ No newline at end of file
build-backend = "poetry.core.masonry.api"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment