[spam-stopper] rest.akismet.com

Benj. Mako Hill mako at atdot.cc
Mon Dec 11 07:08:27 UTC 2006


<quote who="Mark Jaquith" date="Sat, Dec 09, 2006 at 07:03:10PM -0500">
> On Dec 9, 2006, at 5:57 PM, Michael Foord wrote:
> 
> >Was this a temporary problem - or do I need to change my code ?
> 
> Temporary.
> 
> See: http://akismet.com/blog/2006/12/dns-outage/

Actually, I I think it it's probably both.

If urllib can't resolve a domain, it raises and exception which is not
caught by your code. That's not ideal. I'm not sure what people want to
happen when DNS isn't working but I'm pretty sure it's something other
than a 500 and a traceback in the logs.

It seems that the WP plugin just let spam through which, while ugly, may
be the more graceful method of failure. At the very least, it should
probably raise an Akismet error similar to what happens when a verify
fails key call fails. Then it falls on people that use your library to
decide how they want to treat those errors when they show up.

Later,
Mako

-- 
Benjamin Mako Hill
mako at atdot.cc
http://mako.cc/

Creativity can be a social contribution, but only in so
far as society is free to use the results. --RMS



More information about the spam-stopper mailing list