[Twisted-web] [cpushare@cpushare.com: KLive Exception]
Andrea Arcangeli
andrea at cpushare.com
Sat Jan 21 20:42:59 MST 2006
On Sun, Jan 22, 2006 at 03:23:48AM +0100, Andrea Arcangeli wrote:
> I just got another (different) exception from web2:
>
> File "/home/build/bin/i686/python-20060121/lib/python2.4/site-packages/twisted/internet/defer.py", line 307, in _runCallbacks
>
> File "/home/build/bin/i686/python-20060121/lib/python2.4/site-packages/twisted/web2/server.py", line 375, in _cbFinishRender
>
> File "/home/build/bin/i686/python-20060121/lib/python2.4/site-packages/twisted/internet/defer.py", line 229, in callback
>
> File "/home/build/bin/i686/python-20060121/lib/python2.4/site-packages/twisted/internet/defer.py", line 294, in _startRunCallbacks
>
> --- <exception caught here> ---
> File "/home/build/bin/i686/python-20060121/lib/python2.4/site-packages/twisted/internet/defer.py", line 307, in _runCallbacks
>
> File "/home/build/bin/i686/python-20060121/lib/python2.4/site-packages/twisted/web2/server.py", line 365, in filterit
>
> File "/home/build/bin/i686/python-20060121/lib/python2.4/site-packages/twisted/web2/server.py", line 43, in preconditionfilter
>
> File "/home/build/bin/i686/python-20060121/lib/python2.4/site-packages/twisted/web2/http.py", line 242, in checkPreconditions
>
> twisted.web2.http.HTTPError:
>
> if request.method in ("HEAD", "GET"):
> # If it's a range request, don't allow a weak ETag, as that
> # would break.
> canBeWeak = not request.headers.hasHeader('Range')
> if notModified != False and matchETag(inm, canBeWeak):
> raise HTTPError(NotModifiedResponse(response))
> ^^^^^ this one
>
> Here it looks like an exception isn't being trapped.
This one above seems just a side effect of the other bug just fixed, so
the other fix should make this one go away too.
More information about the Twisted-web
mailing list