Opened 15 years ago

Closed 15 years ago

#12649 closed (fixed)

more helpful Unicode exceptions for CSRF migration helper script

Reported by: Antti Kaihola Owned by: nobody
Component: Forms Version: dev
Severity: Keywords: csrf migration helper script
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If the CSRF migration helper script (extras/csrf_migration_helper.py) encounters an HTML file which has invalid UTF-8, a standard UnicodeDecodeError exception is thrown.

The problem is that the path of the bad HTML file is not mentioned in the error message.

Change History (2)

by Antti Kaihola, 15 years ago

the path of the bad HTML file is appended to the exception error message

comment:1 by Luke Plant, 15 years ago

Resolution: fixed
Status: newclosed

(In [12266]) Fixed #12649 - more helpful Unicode exceptions for CSRF migration helper script

Thanks akaihola

Note: See TracTickets for help on using tickets.
Back to Top