# HG changeset patch
# User Jeff Hammel <jhammel@mozilla.com>
# Date 1277737629 25200
# Node ID 3550159184cfc957b6a7f72ce9a37a8c55c5c265
# Parent  894a2e76bd40da69efb819b072ba73409a4e7024# Parent  0f25fe665367cc0ae8657540051dbee8fc587b6d
again, not sure why i have to commit after merging

diff -r 894a2e76bd40 -r 3550159184cf bitsyblog/bitsyblog.py
--- a/bitsyblog/bitsyblog.py	Tue Apr 20 20:01:46 2010 -0700
+++ b/bitsyblog/bitsyblog.py	Mon Jun 28 08:07:09 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 = '<br/>\n'.join(lines)