From d8afec36ce7222a5e60af0d6e9e57e3a22306214 Mon Sep 17 00:00:00 2001 From: Eric Price Date: Mon, 14 Apr 2008 00:11:08 -0400 Subject: [PATCH] Better error messaging for invalid lockers. svn path=/trunk/packages/sipb-xen-www/; revision=412 --- code/getafsgroups.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/getafsgroups.py b/code/getafsgroups.py index e71ede4..e2fece0 100644 --- a/code/getafsgroups.py +++ b/code/getafsgroups.py @@ -1,7 +1,6 @@ #!/usr/bin/python import pprint import subprocess -from webcommon import InvalidInput # import ldap # l = ldap.open("W92-130-LDAP-2.mit.edu") @@ -37,7 +36,7 @@ def getAfsGroupMembers(group, cell): def getLockerPath(locker): if '/' in locker or locker in ['.', '..']: - raise InvalidInput('owner', locker, 'Locker name is invalid.') + raise AfsProcessError("Locker '%s' is invalid." % locker) return '/mit/' + locker def checkAfsGroup(user, group, cell): -- 1.7.9.5