From aa2a2aa4ee8e7dd768c9a2e53cfa3f5e0fc67700 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 15 Jul 2017 18:00:25 -0500 Subject: [PATCH] Add ValueError's to the caught errors --- cogs/birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/birthday.py b/cogs/birthday.py index 8857032..ca71d2d 100644 --- a/cogs/birthday.py +++ b/cogs/birthday.py @@ -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 = {