Comment 1 for bug 612641

Revision history for this message
John A Meinel (jameinel) wrote :

This is my 'trivial' fix for it:

=== modified file 'feed-pqm'
--- feed-pqm 2010-06-28 19:13:18 +0000
+++ feed-pqm 2010-10-01 20:59:46 +0000
@@ -102,7 +102,12 @@
     print "Recent comments:"
     comments = list(mp.all_comments) #XXX: See bug lp:583761
     for comment in comments[-1:]:
- print "%s: %s" % (comment.author.name, comment.message_body)
+ val = "%s: %s" % (comment.author.name, comment.message_body)
+ try:
+ print val
+ except UnicodeError:
+ val = val.encode('ascii', 'replace')
+ print val

 def set_message(mp):