1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Add ValueError's to the caught errors

This commit is contained in:
Phxntxm 2017-07-15 18:00:25 -05:00
parent caa3854dc2
commit aa2a2aa4ee

View file

@ -106,7 +106,7 @@ class Birthday:
date = pendulum.parse(date)
# We'll save in a specific way so that it can be parsed how we want, so do this
date = date.format("%B %-d")
except ParserError:
except (ValueError, ParserError):
await ctx.send("Please provide date in a valid format, such as December 1st!")
else:
entry = {