[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):
|
if not issubclass(exc, BaseException):
|
||||||
raise TypeError('{0!r} must inherit from BaseException.'.format(exc))
|
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):
|
def clear_exception_types(self):
|
||||||
"""Removes all exception types that are handled.
|
"""Removes all exception types that are handled.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user