Menu

#108 Publisher display errors out for non-existent publishers

closed-fixed
3
2009-10-25
2009-08-31
Ahasuerus
No

The publisher display page errors out when the passed in publisher number doesn't exist, e.g. http://www.isfdb.org/cgi-bin/publisher.cgi?14:

# Wikipedia Entry: k
# Wiki Link: Publisher:n
# --> -->

<type 'exceptions.ValueError'> Python 2.5: /usr/bin/python
Mon Aug 31 15:23:08 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.
/var/www/cgi-bin/publisher.cgi in ()
60 if publisher[PUBLISHER_NOTE]:
61 print '<li>'
62 notes = SQLgetNotes(publisher[PUBLISHER_NOTE])
63 formated = FormatNote(notes)
64 print ' <b>Notes:</b>', formated
notes undefined, SQLgetNotes = <function SQLgetNotes at 0xb7ab456c>, publisher = ['u', 'n', 'k', 'n', 'o', 'w', 'n'], PUBLISHER_NOTE = 3
/var/www/cgi-bin/SQLparsing.py in SQLgetNotes(note_id='n')
290
291 def SQLgetNotes(note_id):
292 query = "select * from notes where note_id='%d'" % int(note_id)
293 db.query(query)
294 result = db.store_result()
query undefined, builtin int = <type 'int'>, note_id = 'n'

<type 'exceptions.ValueError'>: invalid literal for int() with base 10: 'n'

Discussion

  • Ahasuerus

    Ahasuerus - 2009-10-25

    Fixed in biblio/publisher 1.6.

     
  • Ahasuerus

    Ahasuerus - 2009-10-25
    • assigned_to: nobody --> ahasuerus_isfdb
    • status: open --> open-fixed
     
  • Ahasuerus

    Ahasuerus - 2009-10-25

    Implemented in r2009-49.

     
  • Ahasuerus

    Ahasuerus - 2009-10-25
    • status: open-fixed --> closed-fixed
     

Anonymous
Anonymous

Add attachments
Cancel