Skip to content

Commit

Permalink
Fix the error where I couldn't register the same connector event twice
Browse files Browse the repository at this point in the history
  • Loading branch information
sousa-andre committed Jan 27, 2021
1 parent 2f5c238 commit b6c2153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lcu_driver/events/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit b6c2153

Please sign in to comment.