From 70dbc350c23f8e3b57d6108cc70db5902a4fe34f Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Sun, 3 Jun 2018 23:33:39 -0800 Subject: [PATCH] Adjust gti --- exts/utils.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/exts/utils.py b/exts/utils.py index f1d2653..ebe4a23 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -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: