diff options
author | 2020-09-22 12:28:01 -0700 | |
---|---|---|
committer | 2020-09-22 12:28:01 -0700 | |
commit | 73c21c6fda0472cd2eabaa3ffc0b58b0782ecf84 (patch) | |
tree | 113346022731ddff50f8c30ae2654c930fce7307 | |
parent | Fix 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.py | 5 |
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: |