Improve date format explanation

This commit is contained in:
Ske 2018-09-16 19:44:13 +02:00
parent f8235370c7
commit 88fb2c6c17

View File

@ -62,7 +62,7 @@ async def member_set(ctx: CommandContext):
# Useful if you want your birthday to be displayed yearless. # Useful if you want your birthday to be displayed yearless.
date = datetime.strptime("0001-" + date_str, "%Y-%m-%d").date() date = datetime.strptime("0001-" + date_str, "%Y-%m-%d").date()
except ValueError: except ValueError:
raise CommandError("Invalid date. Date must be in ISO-8601 format (eg. 1999-07-25).") raise CommandError("Invalid date. Date must be in ISO-8601 format (YYYY-MM-DD, eg. 1999-07-25).")
else: else:
date = None date = None