# HG changeset patch # User Brian Neal # Date 1446167752 18000 # Node ID 65b2bc9cb3cc3f5ce68b281f022910461d50d59c # Parent 76525f5ac2b167213de063dcbb84c58186634577 Fix Unicode error while logging news changes. diff -r 76525f5ac2b1 -r 65b2bc9cb3cc core/management/commands/ssl_images.py --- 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