Skip to content

ValueError: Invalid week: 53 (leap year 2024) #113

@RA88041

Description

@RA88041

On December 30, 2024 (the 53rd week in the leap year) an app using tkcalendar was crashing and was throwing this error:

ValueError: Invalid week: 53

occurring in:

calendar_.py
line 520
sel_date = self.date.fromisocalendar(year, week + int(next_wday < wday), next_wday)

on tkcalendar version 1.6.1
python v3.8.8 (anaconda install)
tkinter v8.6
windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions