Adjust gti
This commit is contained in:
parent
cf729b094b
commit
70dbc350c2
@ -489,12 +489,10 @@ class Utils:
|
||||
in_time = parse(time.upper())
|
||||
in_time = parsed_tz.localize(in_time)
|
||||
except ValueError:
|
||||
em.title = 'Can\' parse time.'
|
||||
em.description = f'For some reason I can\'t parse this time string: \n' \
|
||||
f'{orig_time} {time} {parsed_tz}\n' \
|
||||
f'Examples of valid time strings are in my help documentation.\n' \
|
||||
f'Please try again.'
|
||||
em.colour = discord.Colour.red()
|
||||
raise commands.CommandError(f'For some reason I can\'t parse this time string: \n'
|
||||
f'{orig_time} {time} {parsed_tz}\n'
|
||||
f'Examples of valid time strings are in my help documentation.\n'
|
||||
f'Please try again.')
|
||||
try:
|
||||
out_tz = pytz.timezone(timezone)
|
||||
except pytz.exceptions.UnknownTimeZoneError:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user