<type 'exceptions.UnicodeDecodeError'> | Python 2.5: /usr/bin/python Tue May 24 21:11:24 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 0xb6d5894c>, bib.displayBiblio = <bound method Bibliography.displayBiblio of <biblio.Bibliography instance at 0xb6d5894c>> |
/var/www/cgi-bin/biblio.py in displayBiblio(self=<biblio.Bibliography instance at 0xb6d5894c>) |
197 #################################################### |
198 def displayBiblio(self): |
199 self.printHeaders() |
200 self.printAuthorData() |
201 self.loadAllAuthorTitles() |
self = <biblio.Bibliography instance at 0xb6d5894c>, self.printHeaders = <bound method Bibliography.printHeaders of <biblio.Bibliography instance at 0xb6d5894c>> |
/var/www/cgi-bin/biblio.py in printHeaders(self=<biblio.Bibliography instance at 0xb6d5894c>) |
715 self.cgi_script = '%s.cgi' % self.page_types[self.page_type] |
716 |
717 author = SESSION.Parameter(0, 'unescape') |
718 |
719 # if the first parameter is an author ID |
author undefined, global SESSION = <isfdb.Session instance at 0xb730f8ec>, SESSION.Parameter = <bound method Session.Parameter of <isfdb.Session instance at 0xb730f8ec>> |
/var/www/cgi-bin/isfdb.py in Parameter(self=<isfdb.Session instance at 0xb730f8ec>, param_number=0, param_type='unescape', default_value=None, allowed_values=[]) |
140 value = string.replace(value, '\\', '') |
141 value = string.replace(value, '=', '') |
142 value = urllib.unquote(value).decode('utf-8').encode('iso-8859-1', 'xmlcharrefreplace') |
143 |
144 if allowed_values and value not in allowed_values: |
value = 'Mary GrandPr%E9', global urllib = <module 'urllib' from '/usr/lib/python2.5/urllib.pyc'>, urllib.unquote = <function unquote at 0xb6e5364c>, ).decode = <built-in method decode of str object at 0xb6d55b88>, ).encode undefined |
/usr/lib/python2.5/encodings/utf_8.py in decode(input='Mary GrandPr\xe9', 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 = 'Mary GrandPr\xe9', errors = 'strict', builtin True = True |
<type 'exceptions.UnicodeDecodeError'>: 'utf8' codec can't decode byte 0xe9 in position 12: unexpected end of data