progrium / hd-events

This repo is no longer canonical! See link below:
http://github.com/hackerdojo/hd-events
8 stars 1 forks source link

iCal link generates AttributeError: 'NoneType' object has no attribute 'replace' #42

Open billward opened 14 years ago

billward commented 14 years ago

iCal link throws a Python exception. It's visible at this URL: http://events.hackerdojo.com/events.ics Error is:

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/hackerdojo-events/1.343334194115548030/main.py", line 48, in get
    cal.add_component(event.to_ical())
  File "/base/data/home/apps/hackerdojo-events/1.343334194115548030/models.py", line 159, in to_ical
    event.add('dtend', self.end_time.replace(tzinfo=pytz.timezone('US/Pacific')))
AttributeError: 'NoneType' object has no attribute 'replace'