From bbf2b25719f3e7852739db30a7050813a1a75eee Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sun, 18 Dec 2022 16:32:06 -0500 Subject: [PATCH] Fix bug where day and year both being specified together was not checked properly --- download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.py b/download.py index 8e8f15a..5c99992 100644 --- a/download.py +++ b/download.py @@ -204,7 +204,7 @@ class FetchCommand(click.Command): def invoke(self, ctx: click.Context): year = ctx.params.get("year") day = ctx.params.get("day") - if (year and not day) or (not day and year): + if (year and not day) or (day and not year): raise click.ClickException("day and year must be specified together") return super().invoke(ctx)