LiquidFun / aoc_tiles

Fancy Advent of Code README tiles showing the completion status of the challenges per day
Apache License 2.0
26 stars 3 forks source link

fixed none error if previous days have no solution #4

Closed aurarius1 closed 8 months ago

aurarius1 commented 8 months ago

Hi,

while setting this addon up with a friend we noticed that if there are solutions missing in between days (e.g. day 13 is solved but none of the prior days) the addon crashes because the solution_path is then None. This is a case I didn't catch with the previous path error fix, so now it should work properly and generate tiles for not solved solutions. I am very sorry for this.

Additionally we found that sometimes the caching of the leaderboard might fail. This is the case when the addon runs with an error but manages to create the leaderboardYEAR.html file but there is no content fetched. Then the hook will crash with the "No leaderboard found?!" assertion.