Modify ↓
#6379 closed defect (fixed)
ValueError: Can't send unicode content
Reported by: | anonymous | Owned by: | Erich Seifert |
---|---|---|---|
Priority: | normal | Component: | RobotsTxtPlugin |
Severity: | blocker | Keywords: | unicode |
Cc: | Trac Release: | 0.12 |
Description
Running trac HEAD and attempting to use RobotsTxt plugin.
The wiki page contains three open-brace characters, followed by the sample robots.txt content and then three close-brace characters. When navigating to /robots.txt, I get the error:
ValueError: Can't send unicode content
Attachments (1)
Change History (4)
Changed 13 years ago by
Attachment: | robotstxt-trac-0.12.patch added |
---|
comment:1 Changed 13 years ago by
Keywords: | unicode added |
---|
Added a patch that resolved the issue for me. It checks for unicode content and encodes it to a normal string. Additionally the patch removes leading and trailing new lines and spaces from the page content.
comment:3 Changed 10 years ago by
Owner: | changed from Noah Kantrowitz to Erich Seifert |
---|
Note: See
TracTickets for help on using
tickets.
Patch for Trac 0.12 compatibility