Skip to content

Commit

Permalink
Account for None timezone.
Browse files Browse the repository at this point in the history
  • Loading branch information
scragly authored Sep 14, 2019
1 parent 4b9ea26 commit b71ec4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eevee/cogs/time/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def time(self, ctx, member: discord.Member = None):
"""Shows a member's current local time."""
member = member or ctx.author
timezone = await self.get_timezone(member.id)
if not timezone:
if not timezone or timezone == "None":
if ctx.author == member:
return await ctx.error(
f'{member.display_name} has not set a timezone yet.',
Expand Down

0 comments on commit b71ec4a

Please sign in to comment.