changeset 74:2c219b788648

dont let handlers kill the blog
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 15 Sep 2010 10:34:14 -0700
parents e6055bf127eb
children c690198a2625
files bitsyblog/bitsyblog.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/bitsyblog.py	Thu Jul 08 11:13:08 2010 -0700
+++ b/bitsyblog/bitsyblog.py	Wed Sep 15 10:34:14 2010 -0700
@@ -345,7 +345,10 @@
         # fire event handlers
         # XXX could be done asynchronously
         for handler in self.handlers:
+          try:
             handler(blog_entry, location)
+          except:
+            pass
 
         # point the user at the post
         return exc.HTTPSeeOther("Post blogged by bitsy", location=location)