Opened 5 years ago

Closed 5 years ago

#12649 closed (fixed)

more helpful Unicode exceptions for CSRF migration helper script

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

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.

Attachments (1)

12649-csrf-migration-helper-file-path-in-unicode-exception.diff (804 bytes) - added by akaihola 5 years ago.
the path of the bad HTML file is appended to the exception error message

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by akaihola

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

comment:1 Changed 5 years ago by lukeplant

  • Resolution set to fixed
  • Status changed from new to closed

(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