Mercurial > public > sg101
changeset 988:65b2bc9cb3cc
Fix Unicode error while logging news changes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 29 Oct 2015 20:15:52 -0500 |
parents | 76525f5ac2b1 |
children | 2908859c2fe4 |
files | core/management/commands/ssl_images.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/management/commands/ssl_images.py Wed Oct 28 21:06:13 2015 -0500 +++ b/core/management/commands/ssl_images.py Thu Oct 29 20:15:52 2015 -0500 @@ -281,7 +281,8 @@ if changed: result = lxml.html.tostring(root, encoding='utf-8') - return result[5:-6] # strip off parent div we added + result = result[5:-6] # strip off parent div we added + return result.decode('utf-8') return html