Skip to content

Commit ce009cb

Browse files
author
Richard Jones
committed
remove use of string exception
1 parent 1814e89 commit ce009cb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Fixes:
1818
2550570)
1919
- don't show entire history by default
2020
(fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540629)
21+
- remove use of string exception
2122

2223

2324
2009-03-18 1.4.8 (r4209)

roundup/cgi/PageTemplates/Expressions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def installHandlers(engine):
5353
try:
5454
from zExceptions import Unauthorized
5555
except ImportError:
56-
Unauthorized = "Unauthorized"
56+
class Unauthorized(Exception):
57+
pass
5758

5859
def acquisition_security_filter(orig, inst, name, v, real_validate):
5960
if real_validate(orig, inst, name, v):

0 commit comments

Comments
 (0)