--> --> -->
 
 
KeyError
Python 2.4.3: /usr/bin/python
Sat May 18 21:24:59 2013

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
 1716 
 1717     return body
 1718     
 1719 if __name__ == '__main__':
 1720     main()
main = <function main>
 /home/performa/public_html/cgi-bin/pfi_registration.py in main()
  140         return
  141 
  142     if course_dict['variant']:
  143         variant = ' (%s)' % course_dict['variant']
  144     else:
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/', ...}

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