--> -->
 
 
<type 'exceptions.TypeError'>
Python 2.7.5: /usr/bin/python
Sat May 26 13:08:32 2018

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/opencont/opencontest.org/www/contest/index.py in ()
     22 #print val
     23 
     24 
     25 
=>   26 url.redirect()
url = <module 'url' from '/home/opencont/opencontest.org/www/contest/url.pyc'>, url.redirect = <function redirect>
 /home/opencont/opencontest.org/www/contest/url.py in redirect()
    109    if page_name == "contest_details":
    110          cb = ContestDetails_Builder()
=>  111          contents = cb.build()
    112          print translate(lang, page_name, contents)
    113          return
contents undefined, cb = <contestdetails_builder.ContestDetails_Builder instance>, cb.build = <bound method ContestDetails_Builder.build of <c...details_builder.ContestDetails_Builder instance>>
 /home/opencont/opencontest.org/www/contest/contestdetails_builder.py in build(self=<contestdetails_builder.ContestDetails_Builder instance>)
    172 
    173         self.cur.execute(
=>  174              "SELECT category_id, category_name FROM   v_contest_categories WHERE category_id<>5 AND contest_schedules_id = %s order by sort_order",(row["contest_schedules_id"],) 
    175         )
    176 
row = None

<type 'exceptions.TypeError'>: 'NoneType' object has no attribute '__getitem__'
      args = ("'NoneType' object has no attribute '__getitem__'",)
      message = "'NoneType' object has no attribute '__getitem__'"