util:wsgi: add BEExceptionApp for translating storage exceptions.
authorW. Trevor King <wking@tremily.us>
Wed, 29 Aug 2012 20:24:03 +0000 (16:24 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 30 Aug 2012 03:29:56 +0000 (23:29 -0400)
commit5a32d82284e54facf2f5dcb03ba37afe3805a609
tree3252239fcf095bfdf89708fce55cd359b7d9ca52
parent2950a115fb106ae73b87f87dc4865156d9311f8e
util:wsgi: add BEExceptionApp for translating storage exceptions.

This fixes .test_get_initial_value for the HTTP backend, because the
tests use TestingHTTP.getURL, which only catch HandlerError, not the
more specific storage exceptions.
libbe/command/serve.py
libbe/storage/http.py
libbe/util/wsgi.py