Skip to content

Commit

Permalink
Abort if year is not an int
Browse files Browse the repository at this point in the history
  • Loading branch information
J0B10 committed Oct 9, 2021
1 parent b6756db commit d40d7ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions act/joblo2213-aoc-badges-action@master
Submodule joblo2213-aoc-badges-action@master added at ed639d
1 change: 1 addition & 0 deletions aoc-badges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit d40d7ff

Please sign in to comment.