jcspeegs / disneyland-reservation-checker

Check reservation availability at Disneyland
2 stars 0 forks source link

error when passing date with single digit day #5

Closed jcspeegs closed 3 years ago

jcspeegs commented 3 years ago

When passing a single digit day to the start or end options, get error

./disneyland_reservation_checker.py -s 2021-11-9

Traceback (most recent call last): File "/home/ugflows/dev/disneyland_reservation_checker/./disneyland_reservation_checker.py", line 161, in main() File "/home/ugflows/dev/disneyland_reservation_checker/./disneyland_reservation_checker.py", line 156, in main calendar.notify(stdout=True) File "/home/ugflows/dev/disneyland_reservation_checker/./disneyland_reservation_checker.py", line 94, in notify self.notify_stdout() File "/home/ugflows/dev/disneyland_reservation_checker/./disneyland_reservation_checker.py", line 101, in notify_stdout print(self) File "/home/ugflows/dev/disneyland_reservation_checker/./disneyland_reservation_checker.py", line 52, in str park = ' and '.join(day['parks']) KeyError: 'parks'

jcspeegs commented 3 years ago

completed