cannot concatenate 'str' and 'list' objects
Νικόλαος Κούρας
nikos.gr33k at gmail.com
Sat Sep 15 08:26:18 EDT 2012
Sorry the problem appears when you try to input data botton down the page in the text area boxes and click submit.
this is the error apperaing:
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/nikos/public_html/cgi-bin/counter.py in ()
56 # I would suggest using some kind of verification function to check that the value of 'page' is OK, before opening the file.
57
58 f = open( '../' + page )
59
60 # read first line of the file
f undefined, builtin open = <built-in function open>, page = ['index.html', 'index.html']
<type 'exceptions.TypeError'>: cannot concatenate 'str' and 'list' objects
args = ("cannot concatenate 'str' and 'list' objects",)
message = "cannot concatenate 'str' and 'list' objects"
More information about the Python-list
mailing list