From 2a301a4eb48eef96529b98198b9c43c5b8b8ed78 Mon Sep 17 00:00:00 2001 From: Danny Date: Mon, 15 Apr 2019 14:49:52 -0400 Subject: [PATCH] [tasks] Fix assignment of tuple when appending --- discord/ext/tasks/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py index 54b872ba3..374e91e86 100644 --- a/discord/ext/tasks/__init__.py +++ b/discord/ext/tasks/__init__.py @@ -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.