Changeset 409
- Timestamp:
- Apr 13, 2008, 11:59:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/getafsgroups.py
r408 r409 26 26 # return False 27 27 28 class MyException(Exception):28 class AfsProcessError(Exception): 29 29 pass 30 30 … … 51 51 stdout=subprocess.PIPE, stderr=subprocess.PIPE) 52 52 if p.wait(): 53 raise MyException(p.stderr.read())53 raise AfsProcessError(p.stderr.read()) 54 54 return p.stdout.read().split()[-1][1:-1] 55 55 … … 58 58 stdout=subprocess.PIPE, stderr=subprocess.PIPE) 59 59 if p.wait(): 60 raise MyException(p.stderr.read())60 raise AfsProcessError(p.stderr.read()) 61 61 lines = p.stdout.readlines() 62 62 values = [] … … 79 79 cell = getCell(locker) 80 80 values = getLockerAcl(locker) 81 except MyException, e:81 except AfsProcessError, e: 82 82 return str(e) 83 83
Note: See TracChangeset
for help on using the changeset viewer.