--> --> -->
 
 
KeyError
Python 2.4.3: /usr/bin/python
Thu Aug 21 05:09:35 2014

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

 /home/performa/public_html/cgi-bin/pfi_registration.py
 1704 
 1705     return body
 1706     
 1707 if __name__ == '__main__':
 1708     main()
main = <function main>
 /home/performa/public_html/cgi-bin/pfi_registration.py in main()
  140         return
  141 
  142     if course_info['variant']:
  143         variant = ' (%s)' % course_info['variant']
  144     else:
course_info = <pfi_utils.CourseInfo instance>
 /home/performa/public_html/cgi-bin/pfi_utils.py in __getitem__(self=<pfi_utils.CourseInfo instance>, key='variant')
  188     # Most info can be accessed as a dictionary
  189     def __getitem__(self, key):
  190         return self.course_dict[key]
  191 
  192     # Useful for checking if the init function found the course in the database
self = <pfi_utils.CourseInfo instance>, self.course_dict = {'capacity': 10L, 'city': 'Tampa', 'country': 'USA', 'currency': 'USD', 'date': 'April 13 - 14, 2013', 'end_date': datetime.date(2013, 4, 14), 'id': 509, 'is_full': 'N', 'level': 'Intermediate Freediver', 'level_page': '/course-information/intermediate/', ...}, key = 'variant'

KeyError: 'variant'
      args = ('variant',)