diff options
| author | Nadir Chowdhury <[email protected]> | 2021-02-25 02:26:51 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-24 21:26:51 -0500 |
| commit | 63ec23bac24ab62633bdb8fd19b93ecd3fddba7c (patch) | |
| tree | 14ad9433dddf4c056c292a07e2c0e74b79942cdd /discord/ext/tasks | |
| parent | Fix NameError with invoked_parents (diff) | |
| download | discord.py-63ec23bac24ab62633bdb8fd19b93ecd3fddba7c.tar.xz discord.py-63ec23bac24ab62633bdb8fd19b93ecd3fddba7c.zip | |
Code optimisations and refactoring via Sourcery
Diffstat (limited to 'discord/ext/tasks')
| -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 94917ca0..9f687005 100644 --- a/discord/ext/tasks/__init__.py +++ b/discord/ext/tasks/__init__.py @@ -103,7 +103,7 @@ class Loop: now = datetime.datetime.now(datetime.timezone.utc) if now > self._next_iteration: self._next_iteration = now - except self._valid_exception as exc: + except self._valid_exception: self._last_iteration_failed = True if not self.reconnect: raise |