From 88111ccab42e6ff686cb1dc4ff2416f0b409c14a Mon Sep 17 00:00:00 2001 From: kwzrd Date: Sat, 13 Mar 2021 14:08:11 +0100 Subject: Branding: add missing early exit --- bot/exts/backend/branding/_cog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/exts/backend/branding/_cog.py b/bot/exts/backend/branding/_cog.py index 61ae46923..f5bad21ac 100644 --- a/bot/exts/backend/branding/_cog.py +++ b/bot/exts/backend/branding/_cog.py @@ -158,6 +158,7 @@ class Branding(commands.Cog): if last_rotation_timestamp is None: # Maiden case ~ never rotated await self.rotate_icons() + return last_rotation = datetime.fromtimestamp(last_rotation_timestamp) difference = (datetime.utcnow() - last_rotation) + timedelta(minutes=5) -- cgit v1.2.3