Re: weblogsping.py error handling patch
Ryan Barrett <pyblosxom-6sb6M7qyT/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
on second thought, it might be more appropriate to put this kind of error handling in the core. pyblosxom would wrap all of its calls to plugin callbacks in try/except blocks, and log the exceptions, instead of letting them propagate all the way up. this would make the plugin design more robust. wari's email address is bouncing, so pyblosxom-devel...thoughts? On Tue, 29 Aug 2006, Ryan Barrett wrote: > hi wari, pyblosxom-devel. i've attached a small patch for weblogsping.py, > against the version in the 1.3 contrib pack. > > right now, if it can't connect to weblogs.com or ping.blo.gs, or gets a 5xx > HTTP response code, or hits an XML-RPC fault, it lets the exception propagate > up to pyblosxom. pyblosxom then dies and shows the user an ugly error > message. > > this patch handles the exception, logs an error, and lets pyblosxom continue > rendering the page. > > -Ryan > > p.s. i'll start submitting patches against svn, instead of 1.3, Real Soon > Now. > promise! :P > > -- > http://snarfed.org/ -Ryan -- http://snarfed.org/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642