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/stoecker/isfdb/install/cgi-bin/publisheryear.cgi in <module>() |
55 print ISFDBLinkNoName('publisher.cgi', publisher_id, 'Return to the publisher page')
|
56 print '<p>'
|
=> 57 PrintPubsTable(pubs, 'publisher')
|
58
|
59 PrintTrailer('publisheryear', publisher_id, publisher_id)
|
PrintPubsTable = <function PrintPubsTable>, pubs = [(993351, 'Classic Ghost Story Collection', 'CLSSCGHSTB2023', '2023-06-30', 5071, '1748', 'tp', 'OMNIBUS', '9781835140031', 'https://m.media-amazon.com/images/I/41XHbRD7-lL.jpg', '\xc2\xa3', 1167504, None, None, None), (992231, 'Classic Horror Story Collection', 'CLSSCHRRRS2023', '2023-07-29', 5071, '816', 'tp', 'OMNIBUS', '9781835140048', 'https://m.media-amazon.com/images/I/418wTYpc6JL.jpg', '$19.99', 1166049, None, None, None), (1001342, "A Midsummer Night's Dream", 'MDSMMRNGHT2023', '2023-09-30', 5071, '96', 'hc', 'CHAPBOOK', '9781840228502', 'https://m.media-amazon.com/images/I/41Uj16y4Y3L.jpg', '\xc2\xa38.99', 1179046, 9440, None, None)] |
/home/stoecker/isfdb/install/cgi-bin/common.py in PrintPubsTable(pubs=[(993351, 'Classic Ghost Story Collection', 'CLSSCGHSTB2023', '2023-06-30', 5071, '1748', 'tp', 'OMNIBUS', '9781835140031', 'https://m.media-amazon.com/images/I/41XHbRD7-lL.jpg', '\xc2\xa3', 1167504, None, None, None), (992231, 'Classic Horror Story Collection', 'CLSSCHRRRS2023', '2023-07-29', 5071, '816', 'tp', 'OMNIBUS', '9781835140048', 'https://m.media-amazon.com/images/I/418wTYpc6JL.jpg', '$19.99', 1166049, None, None, None), (1001342, "A Midsummer Night's Dream", 'MDSMMRNGHT2023', '2023-09-30', 5071, '96', 'hc', 'CHAPBOOK', '9781840228502', 'https://m.media-amazon.com/images/I/41Uj16y4Y3L.jpg', '\xc2\xa38.99', 1179046, 9440, None, None)], display_type='publisher', user=<login.User instance>, limit=100000) |
1080 index = 1
|
1081 for pub in pubs:
|
=> 1082 PrintOnePub(pub, pub_authors, pub_publishers, pub_series, cover_artists, bgcolor, display_type, user, index)
|
1083 bgcolor ^= 1
|
1084 index += 1
|
global PrintOnePub = <function PrintOnePub>, pub = (993351, 'Classic Ghost Story Collection', 'CLSSCGHSTB2023', '2023-06-30', 5071, '1748', 'tp', 'OMNIBUS', '9781835140031', 'https://m.media-amazon.com/images/I/41XHbRD7-lL.jpg', '\xc2\xa3', 1167504, None, None, None), pub_authors = {992231: [(1836, 'Mary Shelley', 'Shelley'), (1964, 'Robert Louis Stevenson', 'Stevenson'), (650, 'Bram Stoker', 'Stoker')], 993351: [(1666, 'E. F. Benson', 'Benson'), (1692, 'Henry James', 'James'), (5578, 'M. R. James', 'James'), (19663, 'Edith Wharton', 'Wharton')], 1001342: [(22499, 'William Shakespeare', 'Shakespeare')]}, pub_publishers = {5071: 'Wordsworth Editions'}, pub_series = {9440: "Wordsworth Collector's Editions"}, cover_artists = {}, bgcolor = 1, display_type = 'publisher', user = <login.User instance>, index = 1 |
/home/stoecker/isfdb/install/cgi-bin/common.py in PrintOnePub(pub=(993351, 'Classic Ghost Story Collection', 'CLSSCGHSTB2023', '2023-06-30', 5071, '1748', 'tp', 'OMNIBUS', '9781835140031', 'https://m.media-amazon.com/images/I/41XHbRD7-lL.jpg', '\xc2\xa3', 1167504, None, None, None), pub_authors={992231: [(1836, 'Mary Shelley', 'Shelley'), (1964, 'Robert Louis Stevenson', 'Stevenson'), (650, 'Bram Stoker', 'Stoker')], 993351: [(1666, 'E. F. Benson', 'Benson'), (1692, 'Henry James', 'James'), (5578, 'M. R. James', 'James'), (19663, 'Edith Wharton', 'Wharton')], 1001342: [(22499, 'William Shakespeare', 'Shakespeare')]}, pub_publishers={5071: 'Wordsworth Editions'}, pub_series={9440: "Wordsworth Collector's Editions"}, cover_artists={}, bgcolor=1, display_type='publisher', user=<login.User instance>, index=1) |
1105
|
1106 # Publication title
|
=> 1107 print '<td dir="ltr">%s</td>' % ISFDBLink('pl.cgi', pub[PUB_PUBID], pub[PUB_TITLE], argument=getStylePub(pub[PUB_PUBID]))
|
1108
|
1109 # Publication date unless this is a Publication Series, in which case we have already displayed the date
|
global ISFDBLink = <function ISFDBLink>, pub = (993351, 'Classic Ghost Story Collection', 'CLSSCGHSTB2023', '2023-06-30', 5071, '1748', 'tp', 'OMNIBUS', '9781835140031', 'https://m.media-amazon.com/images/I/41XHbRD7-lL.jpg', '\xc2\xa3', 1167504, None, None, None), global PUB_PUBID = 0, global PUB_TITLE = 1, argument undefined, global getStylePub = <function getStylePub> |
/home/stoecker/isfdb/install/cgi-bin/library.py in ISFDBLink(script='pl.cgi', record_id=993351, displayed_value='Classic Ghost Story Collection', brackets=False, argument='', transliterations=None) |
463 # use that function to retrieve transliterations
|
464 elif trans_function and str(record_id).isdigit():
|
=> 465 trans_values = trans_function(record_id)
|
466 # If transliterated values have been found, add them to the link
|
467 if trans_values:
|
trans_values = None, trans_function = <function SQLloadTransPubTitles>, record_id = 993351 |