Update main.py

Co-Authored-By: 0x5c <0x5c.dev@gmail.com>
This commit is contained in:
Abigail Gold 2019-12-23 15:56:25 -05:00 committed by GitHub
parent 4d763c2fc1
commit 951dc38992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ async def _ensure_activity_time():
try:
tz = pytz.timezone(opt.status_tz)
except pytz.exceptions.UnknownTimeZoneError:
await bot.change_presence(activity=discord.Game(name=status))
await bot.change_presence(activity=discord.Game(name="with invalid timezones."))
return
now = datetime.now(tz=tz).time()