bugfix typo in exception name stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sat, 28 Nov 2009 10:27:58 +0100
branchstable
changeset 3934 d9a29a1fbe43
parent 3933 865b6be915ec
child 3935 2fbb79054a1a
bugfix typo in exception name
rqlrewrite.py
--- a/rqlrewrite.py	Fri Nov 27 23:47:28 2009 +0100
+++ b/rqlrewrite.py	Sat Nov 28 10:27:58 2009 +0100
@@ -285,7 +285,7 @@
             if not eschema.has_perm(self.session, action):
                 rqlexprs = eschema.get_rqlexprs(action)
                 if not rqlexprs:
-                    raise Unauthorised()
+                    raise Unauthorized()
                 self.insert_snippets([((varname, 'X'), rqlexprs)])
 
     def snippet_subquery(self, varmap, transformedsnippet):