Invalid timestring instead of error

This commit is contained in:
bobloy 2021-07-15 14:57:33 -04:00
parent 1e535c2f3e
commit b2e843e781

View File

@ -92,6 +92,9 @@ class Timerole(Cog):
await ctx.maybe_send_embed("Error: Invalid time string.")
return
if parsed_time is None:
return await ctx.maybe_send_embed("Error: Invalid time string.")
days = parsed_time.days
hours = parsed_time.seconds // 60 // 60