[tasks] Fix assignment of tuple when appending

This commit is contained in:
Danny 2019-04-15 14:49:52 -04:00 committed by GitHub
parent f71fd33eba
commit 2a301a4eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.