mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
[tasks] Fix assignment of tuple when appending
This commit is contained in:
parent
f71fd33eba
commit
2a301a4eb4
@ -160,7 +160,7 @@ class Loop:
|
||||
if not issubclass(exc, BaseException):
|
||||
raise TypeError('{0!r} must inherit from BaseException.'.format(exc))
|
||||
|
||||
self._valid_exception = tuple(*self._valid_exception, exc)
|
||||
self._valid_exception = (*self._valid_exception, exc)
|
||||
|
||||
def clear_exception_types(self):
|
||||
"""Removes all exception types that are handled.
|
||||
|
Loading…
x
Reference in New Issue
Block a user