From 809de69ac7551801c0f62ba5b116ddd8424c1b29 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Wed, 29 Jan 2020 08:54:45 -0800 Subject: [PATCH] [Timezone] Add catch for no user --- timezone/timezone.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/timezone/timezone.py b/timezone/timezone.py index 07bc348..aaf3404 100644 --- a/timezone/timezone.py +++ b/timezone/timezone.py @@ -145,6 +145,9 @@ class Timezone(commands.Cog): @time.command() async def compare(self, ctx, user: discord.Member = None): """Compare your saved timezone with another user's timezone.""" + if not user: + return await ctx.send_help() + usertime = await self.config.user(ctx.message.author).usertime() othertime = await self.config.user(user).usertime()