aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/utils.py')
-rwxr-xr-xcogs/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cogs/utils.py b/cogs/utils.py
index d93bf6f..50f601a 100755
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -345,7 +345,10 @@ class Utils(commands.Cog):
if word in message.content.lower().replace(" ", ""):
count += 1
fair = "Fair " * count
- await message.channel.send(fair)
+ try:
+ await message.channel.send(fair)
+ except UnboundLocalError:
+ pass
@commands.cooldown(1, 60, commands.BucketType.member)
@commands.command()