aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/sync/syncers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/cogs/sync/syncers.py b/bot/cogs/sync/syncers.py
index b3819a1e1..e2013dafd 100644
--- a/bot/cogs/sync/syncers.py
+++ b/bot/cogs/sync/syncers.py
@@ -50,7 +50,10 @@ class Syncer(abc.ABC):
"""
log.info(f"Starting {self.name} syncer.")
- message = await ctx.send(f"📊 Synchronising {self.name}s.") if ctx else None
+ if ctx:
+ message = await ctx.send(f"📊 Synchronising {self.name}s.")
+ else:
+ message = None
diff = await self._get_diff(guild)
try: