aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2020-09-22 12:28:01 -0700
committerGravatar GitHub <[email protected]>2020-09-22 12:28:01 -0700
commit73c21c6fda0472cd2eabaa3ffc0b58b0782ecf84 (patch)
tree113346022731ddff50f8c30ae2654c930fce7307
parentFix test for sync message being edited (diff)
Sync: refactor conditional for sending message
The ternary is a bit confusing. Co-authored-by: Numerlor <[email protected]>
-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: