From ec719fcea90aa99ce74e149b26454a50aacb504d Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 10 Aug 2009 03:36:32 +0000 Subject: [PATCH] remove use of string exception git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4343 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + roundup/cgi/PageTemplates/Expressions.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 3c1284a..8ce2756 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -18,6 +18,7 @@ Fixes: 2550570) - don't show entire history by default (fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540629) +- remove use of string exception 2009-03-18 1.4.8 (r4209) diff --git a/roundup/cgi/PageTemplates/Expressions.py b/roundup/cgi/PageTemplates/Expressions.py index bbe7aa6..7074bb8 100644 --- a/roundup/cgi/PageTemplates/Expressions.py +++ b/roundup/cgi/PageTemplates/Expressions.py @@ -53,7 +53,8 @@ guarded_getattr = getattr try: from zExceptions import Unauthorized except ImportError: - Unauthorized = "Unauthorized" + class Unauthorized(Exception): + pass def acquisition_security_filter(orig, inst, name, v, real_validate): if real_validate(orig, inst, name, v): -- 2.30.2