X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fdispatch.py;h=b6009af680a3ed302c5a5b201ec7882ca35ac7fb;hb=9aebe126b0e64eca0a987a9fcc652d8df4476f6a;hp=d428a77ce5f503ae871b3e8eb8d2f2874d22544c;hpb=b409a33843abb3221edd27016558c39cf33a6510;p=wrw.git diff --git a/wrw/dispatch.py b/wrw/dispatch.py index d428a77..b6009af 100644 --- a/wrw/dispatch.py +++ b/wrw/dispatch.py @@ -20,8 +20,8 @@ def handle(req, startreq, handler): try: resp = handler(req) break - except restart, i: - handler = i + except restart as i: + handler = i.handle req.commit(startreq) return resp finally: