Skip to content

UnicodeDecodeError on html.py #193

Closed
@nedbat

Description

@nedbat

Originally reported by Simon Coulton (Bitbucket: simoncoulton, GitHub: simoncoulton)


Using Python 3.2.3, the app occasionally fails to build the HTML required, and errors on line 277: status = pickle.load(fstatus). This could just be that the original status.dat file had some Python 2 code in it, in any case the following resolves the issue:

try:
if sys.version_info < (3, 0):
status = pickle.load(fstatus)
else:
u = pickle._Unpickler(fstatus)
u.encoding = 'latin1'
status = u.load()


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghtml

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions