diff options
| author | Danny <[email protected]> | 2019-04-15 14:49:52 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-15 14:49:52 -0400 |
| commit | 2a301a4eb48eef96529b98198b9c43c5b8b8ed78 (patch) | |
| tree | 57bd8f7d8b3d65ea27bf3ee37b9ca79f3764712e | |
| parent | Fix UnboundLocalError when RequestsWebhookAdapter raises an error. (diff) | |
| download | discord.py-2a301a4eb48eef96529b98198b9c43c5b8b8ed78.tar.xz discord.py-2a301a4eb48eef96529b98198b9c43c5b8b8ed78.zip | |
[tasks] Fix assignment of tuple when appending
| -rw-r--r-- | discord/ext/tasks/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py index 54b872ba..374e91e8 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. |