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