--> -->
 
 
<type 'exceptions.TypeError'>
Python 2.7.5: /usr/bin/python
Mon Dec 10 08:49:29 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()
    123    if page_name == "upload":
    124          cb = Upload_Builder()
=>  125          contents = cb.build()
    126          print translate(lang, page_name, contents)
    127          return
contents undefined, cb = <upload_builder.Upload_Builder instance>, cb.build = <bound method Upload_Builder.build of <upload_builder.Upload_Builder instance>>
 /home/opencont/opencontest.org/www/contest/upload_builder.py in build(self=<upload_builder.Upload_Builder instance>)
     75         fc = open("html/upload.html","r") 
     76         card_contens = fc.read()
=>   77         card_contens = card_contens.replace("[#CONTEST_TITLE]",row["contest_title_template"]+" ["+row["date_start"].strftime("%d.%m.%Y")+" - "+row["date_end"].strftime("%d.%m.%Y")+"] ",1)
     78         card_contens = card_contens.replace("[#CONTEST_STATE]","<font color=\""+self.get_color_by_state_contest(row["state_id"])+"\">"+row["state_title_template"]+"</font>",1)
     79         card_contens = card_contens.replace("[$CATEGORIES]",self.get_categories(contest_schedules_id),1)
card_contens = ' <style>\r\n .table thead th {\r\n .../div>\r\n\r\n\r\n\r\n\r\n </div>\r\n </div>\r\n \r\n\r\n\r\n', card_contens.replace = <built-in method replace of str object>, row = None, ].strftime undefined

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