From b6c2153abc1b6a8ea537dda2bbd849d94a08adaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Sousa?= Date: Wed, 27 Jan 2021 22:15:38 +0000 Subject: [PATCH] Fix the error where I couldn't register the same connector event twice --- lcu_driver/events/managers.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lcu_driver/events/managers.py b/lcu_driver/events/managers.py index 6f9c548..33fddf8 100644 --- a/lcu_driver/events/managers.py +++ b/lcu_driver/events/managers.py @@ -17,7 +17,7 @@ def handlers(self): def _set_event(self, event_name, func_or_coro: Union[Callable, Awaitable]): if event_name in self._handlers: - self.handlers[event_name] += func_or_coro + self.handlers[event_name].append(func_or_coro) else: self.handlers[event_name] = [func_or_coro, ] return self.handlers[event_name][-1] diff --git a/setup.py b/setup.py index 47f9a38..909bdc5 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup -__version__ = '2.1.2' +__version__ = '2.1.3' with open('README.md', encoding='utf-8') as f: long_description = f.read()