<type 'exceptions.TypeError'> | Python 2.7.12: /usr/bin/python Fri Apr 26 12:21:44 2024 |
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/tutor/public_html/cgi-bin/msSql/cpGallery01.py in |
158 node = "A00-0001-0000" |
159 |
160 displayNetwork("templateSov.htm", node) |
161 |
=> 162 main() |
main = <function main> |
/home/tutor/public_html/cgi-bin/msSql/cpGallery01.py in main() |
158 node = "A00-0001-0000" |
159 |
=> 160 displayNetwork("templateSov.htm", node) |
161 |
162 main() |
global displayNetwork = <function displayNetwork>, node = 'M00-0718-0000' |
/home/tutor/public_html/cgi-bin/msSql/cpGallery01.py in displayNetwork(template='templateSov.htm', node='M00-0718-0000') |
141 if not line: break |
142 if( '#YourData' == line.strip()): |
=> 143 displayData( node ) |
144 else: |
145 print line |
global displayData = <function displayData>, node = 'M00-0718-0000' |
/home/tutor/public_html/cgi-bin/msSql/cpGallery01.py in displayData(node='M00-0718-0000') |
92 linkList = [] |
93 |
=> 94 nodeid = row[0] #id |
95 infoUrl = row[3] |
96 iconUrl = row[4] |
nodeid undefined, 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__'"