From 016dee1e9659297ddcaf298ae7ee1e26812e5504 Mon Sep 17 00:00:00 2001 From: Benjamin Golub Date: Mon, 14 Sep 2009 15:43:07 -0400 Subject: [PATCH] use correct module --- demos/appengine/blog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/appengine/blog.py b/demos/appengine/blog.py index 2695e77b..ccaabd53 100644 --- a/demos/appengine/blog.py +++ b/demos/appengine/blog.py @@ -46,12 +46,12 @@ def administrator(method): if self.request.method == "GET": self.redirect(self.get_login_url()) return - raise web.HTTPError(403) + raise tornado.web.HTTPError(403) elif not self.current_user.administrator: if self.request.method == "GET": self.redirect("/") return - raise web.HTTPError(403) + raise tornado.web.HTTPError(403) else: return method(self, *args, **kwargs) return wrapper