Invalid timestring instead of error
This commit is contained in:
parent
1e535c2f3e
commit
b2e843e781
@ -92,6 +92,9 @@ class Timerole(Cog):
|
|||||||
await ctx.maybe_send_embed("Error: Invalid time string.")
|
await ctx.maybe_send_embed("Error: Invalid time string.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if parsed_time is None:
|
||||||
|
return await ctx.maybe_send_embed("Error: Invalid time string.")
|
||||||
|
|
||||||
days = parsed_time.days
|
days = parsed_time.days
|
||||||
hours = parsed_time.seconds // 60 // 60
|
hours = parsed_time.seconds // 60 // 60
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user