| <type 'exceptions.KeyError'> | Python 2.6.4: /usr/bin/python2.6 Thu May 23 13:11:45 2013 |
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/speysound/public_html/index.py in |
| 55 elif Page == 'programme': |
| 56 progkey = form.getfirst('progkey') |
| 57 print speysound.showProgramme(progkey) |
| 58 elif Page == 'programmes': |
| 59 print speysound.showProgrammes() |
| speysound = <module 'speysound' from '/home/speysound/public_html/speysound.pyc'>, speysound.showProgramme = <function showProgramme at 0x915c6bc>, progkey = '27' |
| /home/speysound/public_html/speysound.py in showProgramme(progkey='27') |
| 188 html = '' |
| 189 html += '<div class="programme">\n' |
| 190 html += '<div class="title"><a href="?page=programme&progkey=%s">%s</a></div>\n' % (progkey, programmes[progkey]['title']) |
| 191 html += '<div class="genre">%s</div>\n' % programmes[progkey]['genre'] |
| 192 |
| html = '<div class="programme">\n', progkey = '27', programmes = {'1': {'description': 'Programme will be easy listening - trying to mak...t - little silly snippits and observations.<br/>\n', 'from': 68400, 'genre': '', 'title': "Pete's Beat", 'to': 75600, 'users': ['pete.carson']}, '10': {'description': '', 'from': 460800, 'genre': '', 'title': 'Malky and Jason in the morning', 'to': 468000, 'users': ['malky.taylor']}, '11': {'description': '', 'from': 504000, 'genre': '', 'title': 'Home Grown Sessions', 'to': 507600, 'users': ['phil.stedman']}, '12': {'description': '', 'from': 547200, 'genre': '', 'title': 'Sunday morning with Grant Gallagher', 'to': 554400, 'users': ['grant.gallagher']}, '2': {'description': "The 1960's saw great advances in popular music w...s, as well as some of the quirkier moments.<br/>\n", 'from': 154800, 'genre': '', 'title': 'Shirley\xe2\x80\x99s Choice', 'to': 158400, 'users': ['shirley.bateman']}, '3': {'description': '', 'from': 158400, 'genre': '', 'title': "Aimee's After Eight", 'to': 162000, 'users': ['aimee.smith']}, '4': {'description': '', 'from': 244800, 'genre': '', 'title': 'Folk \xe2\x80\x98n\xe2\x80\x99 That', 'to': 248400, 'users': ['donald.macgregor']}, '5': {'description': 'Bi-lingual<br/>\n', 'from': 324000, 'genre': '', 'title': 'Ceilidh in the Park', 'to': 327600, 'users': ['sheila.mackay']}, '6': {'description': '', 'from': 327600, 'genre': '', 'title': 'Classics for Pleasure', 'to': 334800, 'users': ['douglas.bertram']}, '7': {'description': 'Scottish dance music<br/>\n', 'from': 334800, 'genre': '', 'title': 'Speysound Scottish', 'to': 338400, 'users': ['colin.donaldson']}, ...} |
<type 'exceptions.KeyError'>: '27'
args =
('27',)
message =
'27'