 <p>You have to wrap the call to <code>self.mail_processor.poll_history_feed</code> in a try/except block and log the error for convenience.</p> <pre><code>def safe_poll_history_feed(self): try: self.mail_processor.poll_history_feed() except Exception: cherrypy.engine.log("Exception in mailprocessor monitor", traceback=True) </code></pre> <p>And then use the <code>safe_poll_history_feed</code> method</p>