# HG changeset patch # User Jeff Hammel # Date 1276361196 25200 # Node ID 0f25fe665367cc0ae8657540051dbee8fc587b6d # Parent 4e41e1084e564bc0f6fc8e61d70fe1519ef8d0ac except unicode errors too diff -r 4e41e1084e56 -r 0f25fe665367 bitsyblog/bitsyblog.py --- a/bitsyblog/bitsyblog.py Tue Apr 13 13:59:43 2010 -0700 +++ b/bitsyblog/bitsyblog.py Sat Jun 12 09:46:36 2010 -0700 @@ -646,7 +646,7 @@ writer_name='html', settings_overrides=settings) body = parts['body'] - except SystemMessage, e: + except (SystemMessage, UnicodeError), e: lines = [ cgi.escape(i.strip()) for i in string.split('\n') ] body = '
\n'.join(lines)