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: