From d40d7ff22dca994b8f3da092555e7cdd246a856c Mon Sep 17 00:00:00 2001 From: Jonas <17405009+joblo2213@users.noreply.github.com> Date: Sat, 9 Oct 2021 12:22:58 +0200 Subject: [PATCH] Abort if year is not an int --- act/joblo2213-aoc-badges-action@master | 1 + aoc-badges.py | 1 + 2 files changed, 2 insertions(+) create mode 160000 act/joblo2213-aoc-badges-action@master diff --git a/act/joblo2213-aoc-badges-action@master b/act/joblo2213-aoc-badges-action@master new file mode 160000 index 0000000..ed639df --- /dev/null +++ b/act/joblo2213-aoc-badges-action@master @@ -0,0 +1 @@ +Subproject commit ed639df4c74be271e9bfe9e6a766dd3b4d2931e2 diff --git a/aoc-badges.py b/aoc-badges.py index 38f037a..e4b2fb0 100644 --- a/aoc-badges.py +++ b/aoc-badges.py @@ -21,6 +21,7 @@ year = int(year) except ValueError: print('year input is not an integer') + exit(1) if leaderboard is None or not leaderboard : leaderboard = f'https://adventofcode.com/{year}/leaderboard/private/view/{id}.json'