diff options
| author | 2021-07-28 17:21:36 +0100 | |
|---|---|---|
| committer | 2021-07-28 17:21:36 +0100 | |
| commit | 0cc135de21c8fe8a85b2c42b95b04779b3af7baa (patch) | |
| tree | 2fe5e6f3d7f9d9d7dcfe16f9b711471ee8b5edc8 | |
| parent | Make is_older_than_14d a static method (diff) | |
Return empty containers if clean is cancelled
| -rw-r--r-- | bot/exts/utils/clean.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/utils/clean.py b/bot/exts/utils/clean.py index a1a9eafe4..3aabe42f7 100644 --- a/bot/exts/utils/clean.py +++ b/bot/exts/utils/clean.py @@ -100,8 +100,8 @@ class Clean(Cog): async for message in channel.history(limit=amount): if not self.cleaning: - # Cleaning was canceled - return (message_mappings, message_ids) + # Cleaning was canceled, return empty containers + return defaultdict(list), [] if until_message: |