Code

Opened 4 years ago

Closed 4 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 4 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 4 years ago by akaihola

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

comment:1 Changed 4 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.