ValueError
Python 3.8.10: /usr/bin/python3
Wed Jul 1 10:15:20 2026

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /afs/csail.mit.edu/u/e/edemaine/public_html/confu/index.py in <module>
    306 
    307   cgi.header (content_type = 'text/html; charset=utf-8')
    308   cgi.write (page)
    309 
=>  310 if __name__ == '__main__': cgi_main ()
__name__ = '__main__', cgi_main = <function cgi_main>
 /afs/csail.mit.edu/u/e/edemaine/public_html/confu/index.py in cgi_main(req=None)
    270   elif mode == 'calendar':
    271     #body.append (EventCal.make (cgi.fields.getfirst ('month'), cgi.fields.getfirst ('year')).annotate (events).htmlgen ())
=>  272     body.append (formatter.format_month (
=>  273       int (cgi.fields.getfirst ('year')),
=>  274       DateParse.parse_month (cgi.fields.getfirst ('month')),
body = <pyweb.HTML.X object>, body.append = <bound method Element.append of <pyweb.HTML.X object>>, formatter = <HTMLFormatter.HTMLFormatter object>, formatter.format_month = <bound method HTMLFormatter.format_month of <HTMLFormatter.HTMLFormatter object>>, builtin int = <class 'int'>, cgi = <pyweb.CGI.CGI object>, cgi.fields = FieldStorage(None, None, [MiniFieldStorage('month', 'April'), MiniFieldStorage('year', '0')]), cgi.fields.getfirst = <bound method FieldStorage.getfirst of FieldStor...onth', 'April'), MiniFieldStorage('year', '0')])>, global DateParse = <module 'DateParse' from '/afs/csail.mit.edu/u/e/edemaine/big4/public_html/confu/DateParse.py'>, DateParse.parse_month = <function parse_month>
 /afs/csail.mit.edu/u/e/edemaine/big4/public_html/confu/HTMLFormatter.py in format_month(self=<HTMLFormatter.HTMLFormatter object>, year=0, month=4, help=False)
    386       table.append (HTML.TR (
    387         HTML.TH (calendar.day_name[day]) for day in (6,0,1,2,3,4,5)))
=>  388     monthrange = DateParse.DateRange.entire_month (year, month)
    389     monthevents = self.events.find_overlapping_dates (monthrange)
    390     day = dict ((day, HTML.TD (str (day) + HTML.BR (), class_ = oddeven (day)))
monthrange undefined, global DateParse = <module 'DateParse' from '/afs/csail.mit.edu/u/e/edemaine/big4/public_html/confu/DateParse.py'>, DateParse.DateRange = <class 'DateParse.DateRange'>, DateParse.DateRange.entire_month = <bound method DateRange.entire_month of <class 'DateParse.DateRange'>>, year = 0, month = 4
 /afs/csail.mit.edu/u/e/edemaine/big4/public_html/confu/DateParse.py in entire_month(DateRange=<class 'DateParse.DateRange'>, year=0, month=4)
    125   def entire_month (DateRange, year, month):
    126     day, ndays = calendar.monthrange (year, month)
=>  127     return DateRange (a = datetime.date (day=1, month=month, year=year),
=>  128                       b = datetime.date (day=ndays, month=month, year=year))
    129 
DateRange = <class 'DateParse.DateRange'>, a undefined, global datetime = <module 'datetime' from '/usr/lib/python3.8/datetime.py'>, datetime.date = <class 'datetime.date'>, day = 5, month = 4, year = 0, b undefined, ndays = 30

ValueError: year 0 is out of range
      args = ('year 0 is out of range',)
      with_traceback = <built-in method with_traceback of ValueError object>