| <type 'exceptions.AttributeError'> | Python 2.6.2: /usr/bin/python Fri Jul 3 02:26:19 2009 |
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/oneill/html/potato/index.py in |
| 295 |
| 296 if __name__ == '__main__': |
| 297 main() |
| 298 |
| 299 #page = myweb.create_page(content, title) |
| main = <function main at 0x83de17c> |
| /home/oneill/html/potato/index.py in main() |
| 58 if len(url_parts) >= 2: |
| 59 project_id = url_parts[1] |
| 60 show_project(project_id) |
| 61 elif function == "front": |
| 62 front_page() |
| global show_project = <function show_project at 0x83de1b4>, project_id = 'relic_hunter' |
| /home/oneill/html/potato/index.py in show_project(id='relic_hunter') |
| 89 video_file = load_video_file() |
| 90 p = video_file.get_by_id(id) |
| 91 content += "<h3>" + p.title + " - a Potato Riot Film</h3>" |
| 92 |
| 93 flv_path = os.path.join(video_dir, p.stream) |
| global content = '', p = None, p.title undefined |
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'title'
args =
("'NoneType' object has no attribute 'title'",)
message =
"'NoneType' object has no attribute 'title'"