Add ValueError's to the caught errors
This commit is contained in:
parent
caa3854dc2
commit
aa2a2aa4ee
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Birthday:
|
||||||
date = pendulum.parse(date)
|
date = pendulum.parse(date)
|
||||||
# We'll save in a specific way so that it can be parsed how we want, so do this
|
# We'll save in a specific way so that it can be parsed how we want, so do this
|
||||||
date = date.format("%B %-d")
|
date = date.format("%B %-d")
|
||||||
except ParserError:
|
except (ValueError, ParserError):
|
||||||
await ctx.send("Please provide date in a valid format, such as December 1st!")
|
await ctx.send("Please provide date in a valid format, such as December 1st!")
|
||||||
else:
|
else:
|
||||||
entry = {
|
entry = {
|
||||||
|
|
Loading…
Reference in a new issue