| <type 'exceptions.UnicodeDecodeError'> | Python 2.5: /usr/bin/python Sun Sep 4 08:05:53 2022 |
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/ea.cgi in |
| 20 if __name__ == '__main__': |
| 21 |
| 22 bib = Bibliography() |
| 23 bib.page_type = 'Summary' |
| 24 bib.displayBiblio() |
| bib = <biblio.Bibliography instance at 0x8390eec>, bib.displayBiblio = <bound method Bibliography.displayBiblio of <biblio.Bibliography instance at 0x8390eec>> |
| /var/www/cgi-bin/biblio.py in displayBiblio(self=<biblio.Bibliography instance at 0x8390eec>) |
| 197 #################################################### |
| 198 def displayBiblio(self): |
| 199 self.printHeaders() |
| 200 self.printAuthorData() |
| 201 self.loadAllAuthorTitles() |
| self = <biblio.Bibliography instance at 0x8390eec>, self.printHeaders = <bound method Bibliography.printHeaders of <biblio.Bibliography instance at 0x8390eec>> |
| /var/www/cgi-bin/biblio.py in printHeaders(self=<biblio.Bibliography instance at 0x8390eec>) |
| 714 self.cgi_script = '%s.cgi' % self.page_types[self.page_type] |
| 715 |
| 716 author = SESSION.Parameter(0, 'unescape') |
| 717 |
| 718 # if the first parameter is an author ID |
| author undefined, global SESSION = <isfdb.Session instance at 0x82cac0c>, SESSION.Parameter = <bound method Session.Parameter of <isfdb.Session instance at 0x82cac0c>> |
| /var/www/cgi-bin/isfdb.py in Parameter(self=<isfdb.Session instance at 0x82cac0c>, param_number=0, param_type='unescape', default_value=None, allowed_values=[]) |
| 235 value = string.replace(value, '\\', '') |
| 236 value = string.replace(value, '=', '') |
| 237 value = urllib.unquote(value).decode('utf-8').encode('iso-8859-1', 'xmlcharrefreplace') |
| 238 |
| 239 if allowed_values and value not in allowed_values: |
| value = 'Robert Teldy-Na%EFm', global urllib = <module 'urllib' from '/usr/lib/python2.5/urllib.pyc'>, urllib.unquote = <function unquote at 0x82fe79c>, ).decode = <built-in method decode of str object at 0x84790b0>, ).encode undefined |
| /usr/lib/python2.5/encodings/utf_8.py in decode(input='Robert Teldy-Na\xefm', errors='strict') |
| 14 |
| 15 def decode(input, errors='strict'): |
| 16 return codecs.utf_8_decode(input, errors, True) |
| 17 |
| 18 class IncrementalEncoder(codecs.IncrementalEncoder): |
| global codecs = <module 'codecs' from '/usr/lib/python2.5/codecs.pyc'>, codecs.utf_8_decode = <built-in function utf_8_decode>, input = 'Robert Teldy-Na\xefm', errors = 'strict', builtin True = True |
<type 'exceptions.UnicodeDecodeError'>: 'utf8' codec can't decode bytes in position 15-16: unexpected end of data